Windows: Fix use of file descriptors as sockets
commit7e3bd7f9aac217ac5f3f865c49ca97c303414e6d
authorAsanka Herath <asanka@secure-endpoints.com>
Tue, 24 Aug 2010 04:02:12 +0000 (24 00:02 -0400)
committerAsanka C. Herath <asanka@secure-endpoints.com>
Tue, 14 Sep 2010 12:03:31 +0000 (14 08:03 -0400)
treebdc730ef58fda24bf509b50de574be5bd1a0232c
parentbd795255aaeeed9bf1be74c5dcad1cb0f3466d67
Windows: Fix use of file descriptors as sockets

Sockets and file descriptors are not interchangeable on Windows.  The
test for checking whether a given value is a socket or an FD was
broken for the case where WinSock was not initialized to begin with.
lib/roken/net_read.c
lib/roken/net_write.c