summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/Socket.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-10-15 11:56:09 +0000
committerGordon Sim <gsim@apache.org>2007-10-15 11:56:09 +0000
commit5ecbb4b604221f2667d98e15bde87fa0102c79b7 (patch)
tree2a43c3b9bf3e1e88b711f3840dfec94a0b8bf11e /cpp/src/qpid/sys/Socket.h
parent857ab44c7b5b477874bd25fa396623b6c908b61c (diff)
downloadqpid-python-5ecbb4b604221f2667d98e15bde87fa0102c79b7.tar.gz
Include information on the client connection in io traces.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@584755 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, 11 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/Socket.h b/cpp/src/qpid/sys/Socket.h
index 56b6195b65..a7bb7745c9 100644
--- a/cpp/src/qpid/sys/Socket.h
+++ b/cpp/src/qpid/sys/Socket.h
@@ -77,6 +77,17 @@ public:
*/
std::string getSockname() const;
+ /** Returns the "peer name" ie the address bound to
+ * the remote end of the socket
+ */
+ std::string getPeername() const;
+
+ /**
+ * Returns an address (host and port) for the remote end of the
+ * socket
+ */
+ std::string getPeerAddress() const;
+
/** Accept a connection from a socket that is already listening
* and has an incoming connection
*/