Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-03

Winsock2 patch

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ales Katona

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.

Reply by email