Changeset 3107 for trunk/src/wsock32/wsock32.cpp
- Timestamp:
- Mar 14, 2000, 3:59:43 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/wsock32.cpp
r3103 r3107 1 /* $Id: wsock32.cpp,v 1.1 8 2000-03-13 20:32:24sandervl Exp $ */1 /* $Id: wsock32.cpp,v 1.19 2000-03-14 14:59:43 sandervl Exp $ */ 2 2 3 3 /* … … 47 47 #include <win32wnd.h> 48 48 #include <stdlib.h> 49 #include <win32api.h> 49 50 50 51 #include "wsock32.h" … … 70 71 * Prototypes * 71 72 *****************************************************************************/ 72 73 void __stdcall SetLastError(DWORD dwError);74 75 73 76 74 /***************************************************************************** … … 735 733 ULONG size; 736 734 737 //SvL: Limit send & receive buffer length to 64k 738 size = min(*(ULONG *)optval, 65000); 739 rc = setsockopt(s,level,optname, (char *)&size,optlen); 735 size = *(ULONG *)optval; 736 tryagain: 737 rc = setsockopt(s,level,optname, (char *)&size, sizeof(ULONG)); 738 if(rc == SOCKET_ERROR && size > 65535) { 739 //SvL: Limit send & receive buffer length to 64k 740 // (only happens with 16 bits tcpip stack?) 741 size = 65000; 742 goto tryagain; 743 } 744 740 745 } 741 746 else { … … 1379 1384 HWND hwndOS2 = Win32ToOS2Handle(hWnd); 1380 1385 ULONG ulNewID; 1386 1387 dprintf(("WSAAsyncGetHostByName %s", name)); 1381 1388 1382 1389 if (hwndRelay == NULL) // already initialized ?
Note:
See TracChangeset
for help on using the changeset viewer.