[fpc-devel] Winsock2 patch

Ales Katona ales at chello.sk
Fri Mar 3 09:31:41 CET 2006


This patch adds Winsock2 as the default used winsock for Sockets.pp and
ofcourse it adds the unit itself. I've tested it with lNet and it seems
to be working ofcourse more deep testing should be done. However it
should be less buggy than winsock1.

Ales

P.S: I've made sockets.pp use winsock2 "hard". The designer of
sockets.pp clearly didn't think about using different winsocks as it's
filled with winsock. stuff. The only way winsocks could be "swapped" is
via a preprocessor directive atleast to my knowlidge something like:

{$ifdef win95_without_update}
   {$define winsockunit:=winsock}
{$else}
   {$define winsockunit:=winsock2}
{$endif}

Feel free to try it. I didn't know if there's a win95 define.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: winsock2.pp
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20060303/a3c9b239/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: win32.diff
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20060303/a3c9b239/attachment-0001.ksh>


More information about the fpc-devel mailing list