Ignore:
Timestamp:
Jul 7, 2001, 12:44:11 PM (24 years ago)
Author:
achimha
Message:

implemented WSAEventSelect

File:
1 edited

Legend:

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

    r5638 r6196  
    1 /* $Id: asyncthread.cpp,v 1.9 2001-04-29 18:47:31 sandervl Exp $ */
     1/* $Id: asyncthread.cpp,v 1.10 2001-07-07 10:44:09 achimha Exp $ */
    22
    33/*
     
    208208//******************************************************************************
    209209//******************************************************************************
    210 BOOL FindAndSetAsyncEvent(SOCKET s, HWND hwnd, int msg, ULONG lEvent)
     210BOOL FindAndSetAsyncEvent(SOCKET s, int mode, int notifyHandle, int notifyData, ULONG lEventMask)
    211211{
    212212 PASYNCTHREADPARM pThreadInfo;
     
    215215   pThreadInfo = FindAsyncEvent(s);
    216216   if(pThreadInfo) {
    217         pThreadInfo->u.asyncselect.lEvents        = lEvent;
    218         pThreadInfo->u.asyncselect.lEventsPending = lEvent;
    219         pThreadInfo->hwnd                  = hwnd;
    220         pThreadInfo->msg                   = msg;
    221         if(lEvent == 0) {
     217        pThreadInfo->u.asyncselect.mode           = mode;
     218        pThreadInfo->u.asyncselect.lEvents        = lEventMask;
     219        pThreadInfo->u.asyncselect.lEventsPending = lEventMask;
     220        pThreadInfo->notifyHandle                 = notifyHandle;
     221        pThreadInfo->notifyData                   = notifyData;
     222        if(lEventMask == 0) {
    222223                //make sure this thread isn't used anymore
    223224                pThreadInfo->fRemoved = TRUE;
     
    263264   pThreadInfo = FindAsyncEvent(s);
    264265   if(pThreadInfo) {
    265         *pHwnd   = pThreadInfo->hwnd;
    266         *pMsg    = pThreadInfo->msg;
     266        *pHwnd   = (HWND)pThreadInfo->notifyHandle;
     267        *pMsg    = pThreadInfo->notifyData;
    267268        *plEvent = pThreadInfo->u.asyncselect.lEvents;
    268269   }
Note: See TracChangeset for help on using the changeset viewer.