* 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.
This commit is contained in:
Corinna Vinschen
2005-10-22 15:11:49 +00:00
parent ecebee4838
commit 152a9caf58
4 changed files with 37 additions and 55 deletions

View File

@ -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: