diff options
Diffstat (limited to 'winsup/cygwin/wsock_event.h')
-rw-r--r-- | winsup/cygwin/wsock_event.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/winsup/cygwin/wsock_event.h b/winsup/cygwin/wsock_event.h index 5383a797b..3f8638134 100644 --- a/winsup/cygwin/wsock_event.h +++ b/winsup/cygwin/wsock_event.h @@ -14,13 +14,19 @@ details. */ class wsock_event { WSAEVENT event; + WSAOVERLAPPED ovr; public: wsock_event () : event (NULL) {}; + ~wsock_event () + { + if (event) + WSACloseEvent (event); + event = NULL; + }; /* The methods are implemented in net.cc */ - bool prepare (int sock, long event_mask); - int wait (int sock, int &closed); - void release (int sock); + LPWSAOVERLAPPED prepare (); + int wait (int socket, LPDWORD flags); }; #endif /* __WSOCK_EVENT_H__ */ |