-
Committer:
Trond Norbye
-
Date:
2010-07-27 22:38:51 UTC
-
mto:
This revision was merged to the branch mainline in
revision
887.
-
Revision ID:
trond.norbye@gmail.com-20100727223851-4g3jtln2ubxh7phs
Initial support for Windows
In order to support Windows without adding a lot of #ifdefs all over
the code I decided to move all the inclusions of platform-specific
network headers into a separate include file. Windows use separate
subsystem for sockets (WinSock), and it is almost compatible with how
it works on Unix except from:
* The socket handle is a SOCKET and not a typical filedescriptor.
* It should be closed with closesocket() and not close().
* It does not set the global errno variable, but one should call
WSAGetLastError() instead.