Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-03-29 23:41:17 +0400
committerCorinna Vinschen <corinna@vinschen.de>2004-03-29 23:41:17 +0400
commit81f5200ba36593a020f74766827aa25bd2402d75 (patch)
treea3bf0050d984f16079274e475f0d253398cded28 /winsup/cygwin/wsock_event.h
parentc7f060d0dae9beff62f3280addb4afaa4d4f7399 (diff)
* fhandler.h (class fhandler_socket): Add has_been_closed member.
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize has_been_closed to 0. (fhandler_socket::recvfrom): Use new asynchronous I/O driven wsock_event methods. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. * net.cc (wsock_event::prepare): Reimplement using asynchronous I/O. (wsock_event::wait): Ditto. (wsock_event::release): New method. * wsock_event.h (class wsock_event): Remove ovr member. Accomodate new implementation of prepare and wait methods. Add release method.
Diffstat (limited to 'winsup/cygwin/wsock_event.h')
-rw-r--r--winsup/cygwin/wsock_event.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/wsock_event.h b/winsup/cygwin/wsock_event.h
index 3f8638134..9a1f07ac1 100644
--- a/winsup/cygwin/wsock_event.h
+++ b/winsup/cygwin/wsock_event.h
@@ -14,7 +14,6 @@ details. */
class wsock_event
{
WSAEVENT event;
- WSAOVERLAPPED ovr;
public:
wsock_event () : event (NULL) {};
~wsock_event ()
@@ -25,8 +24,9 @@ public:
};
/* The methods are implemented in net.cc */
- LPWSAOVERLAPPED prepare ();
- int wait (int socket, LPDWORD flags);
+ bool prepare (int sock, long event_mask);
+ int wait (int sock, int &closed);
+ void release (int sock);
};
#endif /* __WSOCK_EVENT_H__ */