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.
