Changeset 6196 for trunk/src/wsock32/wsock32.cpp
- Timestamp:
- Jul 7, 2001, 12:44:11 PM (24 years ago)
- File:
-
- 1 edited
-
trunk/src/wsock32/wsock32.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/wsock32.cpp
r5625 r6196 1 /* $Id: wsock32.cpp,v 1.3 5 2001-04-28 16:15:18 sandervlExp $ */1 /* $Id: wsock32.cpp,v 1.36 2001-07-07 10:44:10 achimha Exp $ */ 2 2 3 3 /* … … 154 154 // to SetLastError() 155 155 if(iError) { 156 dprintf(("WSASetLastError %x", iError));156 dprintf(("WSASetLastError 0x%x", iError)); 157 157 } 158 158 SetLastError(iError); … … 236 236 } 237 237 //Close WSAAsyncSelect thread if one was created for this socket 238 FindAndSetAsyncEvent(s, 0, 0, 0);238 FindAndSetAsyncEvent(s, WSA_SELECT_HWND, 0, 0, 0); 239 239 240 240 // wait thread termination … … 863 863 864 864 if(!fWSAInitialized) { 865 WSASetLastError(WSANOTINITIALISED); 866 return SOCKET_ERROR; 867 } 868 else 869 if(WSAIsBlocking()) { 865 dprintf(("WSA not initialized")); 866 WSASetLastError(WSANOTINITIALISED); 867 return SOCKET_ERROR; 868 } 869 else 870 if(WSAIsBlocking()) { 871 dprintf(("WSA is blocking")); 870 872 WSASetLastError(WSAEINPROGRESS); 871 873 return SOCKET_ERROR; … … 887 889 case SO_LINGER: 888 890 if(optlen < (int)sizeof(ws_linger)) { 891 dprintf(("SOL_SOCKET, SO_LINGER, optlen too small")); 889 892 WSASetLastError(WSAEFAULT); 890 893 return SOCKET_ERROR; … … 899 902 case SO_RCVBUF: 900 903 if(optlen < (int)sizeof(int)) { 904 dprintf(("SOL_SOCKET, SO_RCVBUF, optlen too small")); 901 905 WSASetLastError(WSAEFAULT); 902 906 return SOCKET_ERROR; … … 923 927 case SO_REUSEADDR: 924 928 if(optlen < (int)sizeof(int)) { 929 dprintf(("SOL_SOCKET, SO_REUSEADDR, optlen too small")); 925 930 WSASetLastError(WSAEFAULT); 926 931 return SOCKET_ERROR; … … 938 943 if(optname == TCP_NODELAY) { 939 944 if(optlen < (int)sizeof(int)) { 945 dprintf(("IPPROTO_TCP, TCP_NODELAY, optlen too small")); 940 946 WSASetLastError(WSAEFAULT); 941 947 return SOCKET_ERROR; … … 950 956 } 951 957 else { 958 dprintf(("unknown level code!")); 952 959 WSASetLastError(WSAEINVAL); 953 960 return SOCKET_ERROR;
Note:
See TracChangeset
for help on using the changeset viewer.
