From 152a9caf58265c5a966f978df1ef4f8adbd2543c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 22 Oct 2005 15:11:49 +0000 Subject: * 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. --- winsup/cygwin/fhandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler.h') 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: -- cgit v1.2.3