* 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:
@ -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:
|
||||
|
Reference in New Issue
Block a user