uses\r
lcore,\r
lsocket,\r
- {$ifdef win32}\r
+ {$ifdef mswindows}\r
lcorewsaasyncselect in 'lcorewsaasyncselect.pas',\r
{$else}\r
lcoreselect,\r
dnssync\r
//we don't actually make any use of the units below in this app, we just\r
//include it to check if it compiles ok ;)\r
- {$ifndef win32}\r
+ {$ifndef mswindows}\r
,\r
{$ifndef nomessages}\r
lmessages,\r
+ unitwindowobject,\r
{$endif}\r
unitfork\r
{$endif}\r
;\r
-{$ifdef win32}\r
+{$ifdef mswindows}\r
{$R *.RES}\r
{$endif}\r
\r
procedure dnsrequestdone(sender:tobject;error : word);\r
procedure sessionclosed(sender:tobject;error : word);\r
end;\r
- treleasetest=class(tlcomponent)
- destructor destroy; override;
- end;
+ treleasetest=class(tlcomponent)\r
+ destructor destroy; override;\r
+ end;\r
var\r
listensocket : tlsocket;\r
serversocket : tlsocket;\r
procedure tsc.timehandler(sender:tobject);\r
begin\r
//writeln('got timer event');\r
-end;
-
-destructor treleasetest.destroy;
-begin
- writeln('releasetest.destroy called');
- inherited destroy;
-end;
+end;\r
+\r
+destructor treleasetest.destroy;\r
+begin\r
+ writeln('releasetest.destroy called');\r
+ inherited destroy;\r
+end;\r
\r
procedure tsc.sessionclosed(sender:tobject;error : word);\r
begin\r
ipbin : tbinip;\r
dummy : integer;\r
iplist : tbiniplist;\r
- releasetest : treleasetest;
+ releasetest : treleasetest;\r
begin\r
lcoreinit;\r
- releasetest := treleasetest.create(nil);
- releasetest.release;
-
+ releasetest := treleasetest.create(nil);\r
+ releasetest.release;\r
+ \r
ipbin := forwardlookup('invalid.domain',5);\r
writeln(ipbintostr(ipbin));\r
\r
listensocket.onsessionavailable := sc.sessionavailable;\r
writeln('listening');\r
listensocket.listen;\r
+ writeln('listen call returned');\r
writeln(listensocket.getxport);\r
writeln('listen socket is number ', listensocket.fdhandlein);\r
writeln('creating and setting up server socket');\r