'Make a win32 event object for a socket.'

def _makeSocketEvent(self, fd, action, why):

    event = CreateEvent(None, 0, 0, None)
    WSAEventSelect(fd, event, why)
    self._events[event] = (fd, action)
    return event
