Changeset 7977 for trunk/src/wsock32/wsock32.cpp
- Timestamp:
- Feb 20, 2002, 4:07:14 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/wsock32.cpp
r7805 r7977 1 /* $Id: wsock32.cpp,v 1.4 6 2002-02-06 10:33:56sandervl Exp $ */1 /* $Id: wsock32.cpp,v 1.47 2002-02-20 15:07:14 sandervl Exp $ */ 2 2 3 3 /* … … 376 376 //to blocking mode 377 377 if (cmd == FIONBIO) { 378 HWND hwnd;379 int m sg;378 ULONG ulNotifyHandle, ulNotifyData; 379 int mode; 380 380 ULONG lEvent; 381 381 382 if(QueryAsyncEvent(s, &hwnd, &msg, &lEvent) == TRUE) { 382 if(QueryAsyncEvent(s, &mode, &ulNotifyHandle, &ulNotifyData, &lEvent) == TRUE) 383 { 383 384 if(*argp != 0) { 384 385 //nothing to do; already non-blocking … … 521 522 int *, addrlen) 522 523 { 523 int ret, msg; 524 HWND hwnd; 525 ULONG lEvent; 524 int ret, mode; 525 ULONG lEvent, notifyData, notifyHandle; 526 526 527 527 if(!fWSAInitialized) { … … 549 549 //if this socket has an active async. select pending, then call WSAAsyncSelect 550 550 //with the same parameters for the new socket (see docs) 551 if(QueryAsyncEvent(s, & hwnd, &msg, &lEvent) == TRUE) {552 if(WSAAsyncSelect (ret, hwnd, msg, lEvent) == SOCKET_ERROR) {551 if(QueryAsyncEvent(s, &mode, ¬ifyHandle, ¬ifyData, &lEvent) == TRUE) { 552 if(WSAAsyncSelectWorker(s, mode, notifyHandle, notifyData, lEvent) == SOCKET_ERROR) { 553 553 ret = SOCKET_ERROR; 554 554 } … … 948 948 struct ws_linger *yy; 949 949 struct linger xx; 950 int ret ;950 int ret, val; 951 951 ULONG size; 952 952 char *safeoptval; … … 1159 1159 return SOCKET_ERROR; 1160 1160 } 1161 dprintf(("IPPROTO_IP, IP_HDRINCL 0x%x", *optval)); 1162 ret = setsockopt(s, IPPROTO_IP, IP_HDRINCL_OS2, (char *)optval, optlen); 1161 val = *optval; 1162 dprintf(("IPPROTO_IP, IP_HDRINCL 0x%x", val)); 1163 ret = setsockopt(s, IPPROTO_IP, IP_HDRINCL_OS2, (char *)&val, optlen); 1163 1164 break; 1164 1165
Note:
See TracChangeset
for help on using the changeset viewer.