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>2005-10-22 19:11:49 +0400
committerCorinna Vinschen <corinna@vinschen.de>2005-10-22 19:11:49 +0400
commit152a9caf58265c5a966f978df1ef4f8adbd2543c (patch)
treef2733a29ba624a502beada889712eeeda9891ad6 /winsup/cygwin/fhandler.h
parentecebee48383c7f6c287f6518e92b36a1372d8d2b (diff)
* fhandler.h (class fhandler_socket): Add timeout parameter to wait()
method. * fhandler_socket.cc (fhandler_socket::connect): Use event driven technique (prepare/wait/release) to implement interuptible connect. (fhandler_socket::wait): Add timeout parameter. Allow FD_CONNECT handling. * net.cc (cygwin_connect): Remove braindead workaround for allowing blocking connect. That's entirely in fhandler_socket::connect now.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 961aabc6c..b45d82ff4 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -425,7 +425,7 @@ class fhandler_socket: public fhandler_base
} status;
bool prepare (HANDLE &event, long event_mask);
- int wait (HANDLE event, int flags);
+ int wait (HANDLE event, int flags, DWORD timeout = 10);
void release (HANDLE event);
public: