From 5ecbb4b604221f2667d98e15bde87fa0102c79b7 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 15 Oct 2007 11:56:09 +0000 Subject: 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 --- cpp/src/qpid/sys/Socket.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cpp/src/qpid/sys/Socket.h') 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 */ -- cgit v1.2.1