summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/Socket.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-10-12 05:53:27 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-10-12 05:53:27 +0000
commit9e32ffd2a58e6c22193aa6b856840fbf815a8a92 (patch)
tree5338e610a58588dbc8f85a4b64c8ff0281c1e0dc /cpp/src/qpid/sys/Socket.h
parenta3e5e307fbebe7791161bc080a37d67d9b5cb631 (diff)
downloadqpid-python-9e32ffd2a58e6c22193aa6b856840fbf815a8a92.tar.gz
Refactored Socket to allow for IPv6 and unix domain socket
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@824237 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/Socket.h')
-rw-r--r--cpp/src/qpid/sys/Socket.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/src/qpid/sys/Socket.h b/cpp/src/qpid/sys/Socket.h
index d108402682..4a8cf0dd50 100644
--- a/cpp/src/qpid/sys/Socket.h
+++ b/cpp/src/qpid/sys/Socket.h
@@ -39,12 +39,9 @@ public:
/** Create a socket wrapper for descriptor. */
QPID_COMMON_EXTERN Socket();
- /** Create an initialized TCP socket */
- void createTcp() const;
-
/** Set timeout for read and write */
void setTimeout(const Duration& interval) const;
-
+
/** Set socket non blocking */
void setNonblocking() const;
@@ -59,7 +56,7 @@ public:
*@return The bound port.
*/
QPID_COMMON_EXTERN int listen(uint16_t port = 0, int backlog = 10) const;
-
+
/** Returns the "socket name" ie the address bound to
* the near end of the socket
*/
@@ -102,8 +99,12 @@ public:
QPID_COMMON_EXTERN void setTcpNoDelay(bool nodelay) const;
private:
+ /** Create socket */
+ void createSocket(const SocketAddress&) const;
+
Socket(IOHandlePrivate*);
mutable std::string connectname;
+ mutable bool nonblocking;
};
}}