Fixing network over sockets implementation for win32
commitc7eb1f02edba91e3eec4682fa1adca877696d11d
authorPavel Dovgaluk <Pavel.Dovgaluk@ispras.ru>
Mon, 21 Feb 2011 11:46:44 +0000 (21 14:46 +0300)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 25 Feb 2011 15:13:02 +0000 (25 15:13 +0000)
tree2da9e0ba342a02de4104f6b4a065512740837821
parente1f8c729fa890c67bb4532f22c22ace6fb0e1aaf
Fixing network over sockets implementation for win32

  MSDN includes the following in WSAEALREADY error description for connect()
function: "To preserve backward compatibility, this error is reported as
WSAEINVAL to Winsock applications that link to either Winsock.dll or
Wsock32.dll". So check of this error code was added to allow network
connections through the sockets in Windows.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
net/socket.c