From 03aff7d93cf57507da3483601ef692b39330ac33 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 5 Mar 2007 21:40:44 +0000 Subject: Socket now have non-blocking connect() support. --- include/Socket.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/Socket.h b/include/Socket.h index 4c79237..f65c214 100644 --- a/include/Socket.h +++ b/include/Socket.h @@ -17,6 +17,7 @@ class Socket : public Handle { bool Listen(); Socket Accept() throw (GeneralException); bool IsConnected(); + bool IsConnecting(); bool IsListening(); virtual bool CanRead(); virtual bool CanWrite(); @@ -24,6 +25,7 @@ class Socket : public Handle { int GetPort(); void CloseWrite(); void CloseRead(); + bool FinalizeConnect(); protected: virtual ssize_t nwrite(const void *, size_t) throw (GeneralException); virtual ssize_t nread(void *, size_t) throw (GeneralException); @@ -32,7 +34,7 @@ class Socket : public Handle { private: Socket(int s); - bool connected, listening, writeclosed, readclosed; + bool connected, listening, writeclosed, readclosed, connecting; }; #endif -- cgit v1.2.3