+ Added init/final routines to initialize winsock library

This commit is contained in:
michael 2003-02-03 10:14:02 +00:00
parent bb231816e9
commit 3d0f77a1fb
2 changed files with 24 additions and 2 deletions

View File

@ -636,12 +636,19 @@ begin
Result:=ShortHostToNet(FPort);
end;
Initialization
InitResolve;
Finalization
FinalResolve;
end.
{
$Log$
Revision 1.1 2003-02-01 16:50:38 michael
Revision 1.2 2003-02-03 10:14:12 michael
+ Added init/final routines to initialize winsock library
Revision 1.1 2003/02/01 16:50:38 michael
+ Added resolve unit for WIndows/unix
}

View File

@ -34,3 +34,18 @@ begin
else
GetDNSError:=0; // Must get win32 error ?
end;
Function InitResolve : Boolean;
var
wsaData : TWsaData;
begin
Result:=WSAStartup(1,wsaData)=0;
end;
Function FinalResolve : Boolean;
begin
Result:=True;
end;