diff options
author | pixel <pixel> | 2007-03-05 21:40:44 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-03-05 21:40:44 +0000 |
commit | 03aff7d93cf57507da3483601ef692b39330ac33 (patch) | |
tree | a4103c9234ed6df3ff6201edb152907ff5bc5357 /include | |
parent | 657c7d68d3fde9ff7042149d51f55ca36e5c8385 (diff) |
Socket now have non-blocking connect() support.
Diffstat (limited to 'include')
-rw-r--r-- | include/Socket.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |