X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/495c276d681a5b3f79d4b2af2ed36e8e5d9e993d..eaf53edbc38a2987348e92205a2fd2f1982bc2e1:/lcoretest.dpr diff --git a/lcoretest.dpr b/lcoretest.dpr index 9c4ec7c..b84b8ec 100755 --- a/lcoretest.dpr +++ b/lcoretest.dpr @@ -11,7 +11,11 @@ uses dnsasync, binipstuff, sysutils, - dnssync; + dnssync, + //we don't actually make any use of the units below in this app, we just + //include it to check if it compiles ok ;) + lmessages, + unitfork; {$ifdef win32} {$R *.RES} {$endif} @@ -65,7 +69,7 @@ begin receivecount := receivecount +1; if receivecount >50 then begin writeln('received over 50 bits of data, pausing to let the operator take a look'); - readln; + receivecount := 0; end; while pos(#10,receivebuf) > 0 do begin @@ -82,6 +86,7 @@ end; procedure tsc.sessionconnected(sender: tobject;error : word); begin + if error=0 then begin writeln('session is connected, local address is'+clientsocket.getxaddr); @@ -112,6 +117,7 @@ begin das.onrequestdone := sc.dnsrequestdone; //das.forwardfamily := af_inet6; das.forwardlookup('irc.ipv6.p10link.net'); + end; procedure tsc.dnsrequestdone(sender:tobject;error : word); @@ -126,7 +132,7 @@ begin clientsocket.addr := tempbiniplist; clientsocket.port := '6667'; clientsocket.connect; - writeln(clientsocket.getxaddr); + //writeln(clientsocket.getxaddr); das.free; end;