Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Windows socket API is somewhat different from its POSIX counter part (as described here: http://tangentsoft.net/wskfaq/articles/bsd-compatibility.html). We should address the compatibility issue in this JIRA. For instance, in Windows, WSAStartup should be called before any other socket APIs for the APIs to work correctly. Moreover, as Winsock API does not return error code in errno variables, perror does not work as in Posix systems. We should use WSAGetLastErrorMessage instead.