Ignore:
Timestamp:
Jan 30, 2004, 11:02:12 PM (22 years ago)
Author:
bird
Message:

#682: Test for DEBUG_LOGGING not DEBUG. dprintf may be used in release.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wsock32/asyncapi.cpp

    r7992 r10428  
    1 /* $Id: asyncapi.cpp,v 1.20 2002-02-23 16:39:09 sandervl Exp $ */
     1/* $Id: asyncapi.cpp,v 1.21 2004-01-30 22:02:11 bird Exp $ */
    22
    33/*
     
    407407    ULONG eventReply = WSAMAKESELECTREPLY(event, socket_error);
    408408
    409 #ifdef DEBUG
     409#ifdef DEBUG_LOGGING
    410410    char *pszEvent = NULL;
    411411
     
    576576
    577577                //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))
    579579                {
    580580                        if(state & SS_ISCONNECTED) {
     
    636636                }
    637637                else
    638                 if((lEventsPending & FD_CLOSE) && (state == 0 && bytesread == 0)) 
     638                if((lEventsPending & FD_CLOSE) && (state == 0 && bytesread == 0))
    639639                {
    640640                        state = ioctl(s, FIOBSTATUS, (char *)&tmp, sizeof(tmp));
    641641
    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
    644644                        //executed in another thread when select returns)
    645645                        if(state & (SS_CANTRCVMORE|SS_CANTSENDMORE|SS_ISDISCONNECTING|SS_ISDISCONNECTED)) {
     
    694694        strcat(tmpbuf, " FD_WRITE");
    695695    if (lEventMask & FD_OOB)
    696         strcat(tmpbuf, " FD_OOB");   
     696        strcat(tmpbuf, " FD_OOB");
    697697    if (lEventMask & FD_ACCEPT)
    698698        strcat(tmpbuf, " FD_ACCEPT");
     
    809809        // return our internal event bit representation
    810810        lpEvent->lNetworkEvents = InterlockedExchange((LPLONG)&pThreadInfo->u.asyncselect.lLastEvent, 0);
    811    } 
     811   }
    812812   else
    813813   {
Note: See TracChangeset for help on using the changeset viewer.