Changeset 6154 for trunk/src


Ignore:
Timestamp:
Jul 3, 2001, 4:47:08 PM (24 years ago)
Author:
achimha
Message:

more debugging output for WSAEventSelect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ws2_32/socket.cpp

    r5751 r6154  
    9898
    9999/***********************************************************************
    100  *              WSAEventSelect
     100 *              WSAEventSelect (WS2_32.39)
    101101 */
    102102int WINAPI WSAEventSelect(SOCKET s, WSAEVENT hEvent, LONG lEvent)
    103103{
    104     TRACE("WSAEventSelect %08x, hEvent %08x, event %08x\n", s, hEvent, (unsigned)lEvent );
     104    TRACE("WS2_32: WSAEventSelect %08x, hEvent %08x, event %08x\n", s, hEvent, (unsigned)lEvent );
     105#ifdef DEBUG
     106    // log all event event bits set
     107    char tmpbuf[300];
     108    strcpy(tmpbuf, "");
     109    if (lEvent | FD_READ)
     110        strcat(tmpbuf, " FD_READ");
     111    if (lEvent | FD_WRITE)
     112        strcat(tmpbuf, " FD_WRITE");
     113    if (lEvent | FD_OOB)
     114        strcat(tmpbuf, " FD_OOB");   
     115    if (lEvent | FD_ACCEPT)
     116        strcat(tmpbuf, " FD_ACCEPT");
     117    if (lEvent | FD_CONNECT)
     118        strcat(tmpbuf, " FD_CONNECT");
     119    if (lEvent | FD_CLOSE)
     120        strcat(tmpbuf, " FD_CLOSE");
     121    if (lEvent | FD_QOS)
     122        strcat(tmpbuf, " FD_QOS");
     123    if (lEvent | FD_GROUP_QOS)
     124        strcat(tmpbuf, " FD_GROUP_QOS");
     125    if (lEvent | FD_ROUTING_INTERFACE_CHANGE)
     126        strcat(tmpbuf, " FD_ROUTING_INTERFACE_CHANGE");
     127    if (lEvent | FD_ADDRESS_LIST_CHANGE)
     128        strcat(tmpbuf, " FD_ADDRESS_LIST_CHANGE");
     129    dprintf(("event bits:%s", tmpbuf));
     130#endif
    105131    SetLastError(WSAEINVAL);
    106132    return SOCKET_ERROR;
Note: See TracChangeset for help on using the changeset viewer.