From f1ba7709347e5282438dbec5bed5e55c861092cd Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 31 Jan 2008 18:50:46 +0000 Subject: Make ports accesible through socket interface. Add local port to each logged frame in the client Connector git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@617188 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/Socket.h | 9 +++++++++ 1 file changed, 9 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 2e9a389133..1594e89aac 100644 --- a/cpp/src/qpid/sys/Socket.h +++ b/cpp/src/qpid/sys/Socket.h @@ -87,7 +87,16 @@ public: * socket */ std::string getPeerAddress() const; + /** + * Returns an address (host and port) for the local end of the + * socket + */ + std::string getLocalAddress() const; + uint getLocalPort() const; + uint getRemotePort() const; + + /** Accept a connection from a socket that is already listening * and has an incoming connection */ -- cgit v1.2.1