Changeset 10428 for trunk/src/wsock32/asyncapi.cpp
- Timestamp:
- Jan 30, 2004, 11:02:12 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/asyncapi.cpp
r7992 r10428 1 /* $Id: asyncapi.cpp,v 1.2 0 2002-02-23 16:39:09 sandervlExp $ */1 /* $Id: asyncapi.cpp,v 1.21 2004-01-30 22:02:11 bird Exp $ */ 2 2 3 3 /* … … 407 407 ULONG eventReply = WSAMAKESELECTREPLY(event, socket_error); 408 408 409 #ifdef DEBUG 409 #ifdef DEBUG_LOGGING 410 410 char *pszEvent = NULL; 411 411 … … 576 576 577 577 //Don't send FD_CONNECT is socket was already connected (accept returns connected socket) 578 if(!pThreadParm->fConnected && (lEventsPending & FD_CONNECT)) 578 if(!pThreadParm->fConnected && (lEventsPending & FD_CONNECT)) 579 579 { 580 580 if(state & SS_ISCONNECTED) { … … 636 636 } 637 637 else 638 if((lEventsPending & FD_CLOSE) && (state == 0 && bytesread == 0)) 638 if((lEventsPending & FD_CLOSE) && (state == 0 && bytesread == 0)) 639 639 { 640 640 state = ioctl(s, FIOBSTATUS, (char *)&tmp, sizeof(tmp)); 641 641 642 //Have to make sure this doesn't generates FD_CLOSE 643 //messages when the connection is just fine (recv 642 //Have to make sure this doesn't generates FD_CLOSE 643 //messages when the connection is just fine (recv 644 644 //executed in another thread when select returns) 645 645 if(state & (SS_CANTRCVMORE|SS_CANTSENDMORE|SS_ISDISCONNECTING|SS_ISDISCONNECTED)) { … … 694 694 strcat(tmpbuf, " FD_WRITE"); 695 695 if (lEventMask & FD_OOB) 696 strcat(tmpbuf, " FD_OOB"); 696 strcat(tmpbuf, " FD_OOB"); 697 697 if (lEventMask & FD_ACCEPT) 698 698 strcat(tmpbuf, " FD_ACCEPT"); … … 809 809 // return our internal event bit representation 810 810 lpEvent->lNetworkEvents = InterlockedExchange((LPLONG)&pThreadInfo->u.asyncselect.lLastEvent, 0); 811 } 811 } 812 812 else 813 813 {
Note:
See TracChangeset
for help on using the changeset viewer.