summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/Socket.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2008-05-09 02:00:04 +0000
committerAndrew Stitcher <astitcher@apache.org>2008-05-09 02:00:04 +0000
commit2d4d4a1425d3f4e189868d36a0cc9fbd4bec4756 (patch)
tree7413a08c12494e5c5551b3f09ad35f29804d66a3 /cpp/src/qpid/sys/Socket.h
parent266fbd3880a49ea4f6a221231027408a32033687 (diff)
downloadqpid-python-2d4d4a1425d3f4e189868d36a0cc9fbd4bec4756.tar.gz
QPID-1040: Patch from Ted Ross: Asynchronous Connector
Code to allow non-blocking connection of new sockets git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@654666 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/Socket.h')
-rw-r--r--cpp/src/qpid/sys/Socket.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/Socket.h b/cpp/src/qpid/sys/Socket.h
index 20dc0f1ce3..806d6b5164 100644
--- a/cpp/src/qpid/sys/Socket.h
+++ b/cpp/src/qpid/sys/Socket.h
@@ -93,7 +93,12 @@ public:
uint16_t getLocalPort() const;
uint16_t getRemotePort() const;
-
+ /**
+ * Returns the error code stored in the socket. This may be used
+ * to determine the result of a non-blocking connect.
+ */
+ int getError() const;
+
/** Accept a connection from a socket that is already listening
* and has an incoming connection
*/