/[lcore]/trunk/lsocket.pas
ViewVC logotype

Diff of /trunk/lsocket.pas

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 162 by beware, Fri Aug 7 00:58:35 2015 UTC revision 163 by beware, Tue Oct 12 21:32:15 2021 UTC
# Line 256  Line 256 
256      end else begin      end else begin
257        state :=wsconnecting;        state :=wsconnecting;
258        {$ifdef mswindows}        {$ifdef mswindows}
259            //beware: atleast on windows, wsaasyncselect set interest in events before connecting, or a connect error isn't seen if it happens immediately during connect
260            eventcore.rmasterset(fdhandlein,false);
261            eventcore.wmasterset(fdhandleout);
262          //writeln(inaddr.inaddr.port);          //writeln(inaddr.inaddr.port);
263          winsock.Connect(fdhandlein,winsock.psockaddr(@inADDR)^,getaddrsize);          winsock.Connect(fdhandlein,winsock.psockaddr(@inADDR)^,getaddrsize);
264        {$else}        {$else}
265          system_Connect(fdhandlein,inADDR,getaddrsize);          system_Connect(fdhandlein,inADDR,getaddrsize);
       {$endif}  
266        eventcore.rmasterset(fdhandlein,false);        eventcore.rmasterset(fdhandlein,false);
267        eventcore.wmasterset(fdhandleout);        eventcore.wmasterset(fdhandleout);
268          {$endif}
269        if trymoreips then connecttimeout.enabled := true;        if trymoreips then connecttimeout.enabled := true;
270      end;      end;
271      //sendq := '';      //sendq := '';

Legend:
Removed from v.162  
changed lines
  Added in v.163

No admin address has been configured">No admin address has been configured
ViewVC Help
Powered by ViewVC 1.1.26