dnsasync,\r
binipstuff,\r
sysutils,\r
- dnssync;\r
+ dnssync,\r
+ //we don't actually make any use of lmessages in this app, we just\r
+ //include it to check if it compiles ok ;)\r
+ lmessages;\r
{$ifdef win32}\r
{$R *.RES}\r
{$endif}\r
receivecount := receivecount +1;\r
if receivecount >50 then begin\r
writeln('received over 50 bits of data, pausing to let the operator take a look');\r
- readln;\r
+ \r
receivecount := 0;\r
end;\r
while pos(#10,receivebuf) > 0 do begin\r
\r
procedure tsc.sessionconnected(sender: tobject;error : word);\r
begin\r
+ \r
if error=0 then begin\r
writeln('session is connected, local address is'+clientsocket.getxaddr);\r
\r
das.onrequestdone := sc.dnsrequestdone;\r
//das.forwardfamily := af_inet6;\r
das.forwardlookup('irc.ipv6.p10link.net');\r
+ \r
end;\r
\r
procedure tsc.dnsrequestdone(sender:tobject;error : word);\r
+var\r
+ tempbinip : tbinip;\r
+ tempbiniplist : tbiniplist;\r
begin\r
writeln('irc.ipv6.p10link.net resolved to '+das.dnsresult+' connecting client socket there');\r
- clientsocket.addr := das.dnsresult;\r
+ das.dnsresultbin(tempbinip);\r
+ tempbiniplist := biniplist_new;\r
+ biniplist_add(tempbiniplist,tempbinip);\r
+ clientsocket.addr := tempbiniplist;\r
clientsocket.port := '6667';\r
clientsocket.connect;\r
- writeln(clientsocket.getxaddr);\r
+ //writeln(clientsocket.getxaddr);\r
das.free;\r
end;\r
\r