diff options
Diffstat (limited to 'cpp/src/qpid/sys/Socket.h')
| -rw-r--r-- | cpp/src/qpid/sys/Socket.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/Socket.h b/cpp/src/qpid/sys/Socket.h index 9f62f3be1c..15cd388f60 100644 --- a/cpp/src/qpid/sys/Socket.h +++ b/cpp/src/qpid/sys/Socket.h @@ -39,6 +39,9 @@ public: /** Create a socket wrapper for descriptor. */ QPID_COMMON_EXTERN Socket(); + /** Create a new Socket which is the same address family as this one */ + QPID_COMMON_EXTERN Socket* createSameTypeSocket() const; + /** Set socket non blocking */ void setNonblocking() const; @@ -92,7 +95,9 @@ private: /** Create socket */ void createSocket(const SocketAddress&) const; + /** Construct socket with existing handle */ Socket(IOHandlePrivate*); + mutable std::string localname; mutable std::string peername; mutable bool nonblocking; |
