diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-05-07 07:51:31 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-05-07 07:51:31 +0000 |
commit | 3e101fb2cd57d46020748deb607c99fd6e5be3bf (patch) | |
tree | 81e2da440cf03b3eea979e291aac5b305dda9253 /winsup/cygwin/wsock_event.h | |
parent | dab22ff6e640d81b5b0b0b2e075069c8bf092b31 (diff) | |
download | cygnal-3e101fb2cd57d46020748deb607c99fd6e5be3bf.tar.gz cygnal-3e101fb2cd57d46020748deb607c99fd6e5be3bf.tar.bz2 cygnal-3e101fb2cd57d46020748deb607c99fd6e5be3bf.zip |
Revert code reversion from 2004-04-03. So, revert to async I/O again.
* fhandler.h (status): Add "closed" flag.
(prepare): New method declaration.
(wait): Ditto.
(release): Ditto.
* fhandler_socket.cc: Don't include wsock_event.h.
(fhandler_socket::prepare): New method, moved from wsock_event.
(fhandler_socket::wait): Ditto.
(fhandler_socket::release): New method.
(fhandler_socket::recvfrom): Simplify loop.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
* net.cc: Don't include wsock_event.h.
(wsock_event::prepare): Remove.
(wsock_event::wait): Ditto.
* wsock_event.h: Remove.
Diffstat (limited to 'winsup/cygwin/wsock_event.h')
-rw-r--r-- | winsup/cygwin/wsock_event.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/winsup/cygwin/wsock_event.h b/winsup/cygwin/wsock_event.h deleted file mode 100644 index 3f8638134..000000000 --- a/winsup/cygwin/wsock_event.h +++ /dev/null @@ -1,32 +0,0 @@ -/* wsock_event.h: Defining the wsock_event class - - Copyright 2002 Red Hat, Inc. - -This file is part of Cygwin. - -This software is a copyrighted work licensed under the terms of the -Cygwin license. Please consult the file "CYGWIN_LICENSE" for -details. */ - -#ifndef __WSOCK_EVENT_H__ -#define __WSOCK_EVENT_H__ - -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 */ - LPWSAOVERLAPPED prepare (); - int wait (int socket, LPDWORD flags); -}; - -#endif /* __WSOCK_EVENT_H__ */ |