diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-05-01 12:43:38 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-05-01 12:43:38 -0230 |
commit | c80bbef52c82989b48570f4449831b7017917982 (patch) | |
tree | 963493c6dafe1ff47310d0f7f58420b2a64ae522 /cpp/src/Ice/TcpAcceptor.cpp | |
parent | Bug 3459 - add rewind/reset to InputStream/OutputStream (diff) | |
download | ice-c80bbef52c82989b48570f4449831b7017917982.tar.bz2 ice-c80bbef52c82989b48570f4449831b7017917982.tar.xz ice-c80bbef52c82989b48570f4449831b7017917982.zip |
Bug 3972 - improve server network tracing
Diffstat (limited to 'cpp/src/Ice/TcpAcceptor.cpp')
-rw-r--r-- | cpp/src/Ice/TcpAcceptor.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cpp/src/Ice/TcpAcceptor.cpp b/cpp/src/Ice/TcpAcceptor.cpp index 177cf270339..d2c4778069b 100644 --- a/cpp/src/Ice/TcpAcceptor.cpp +++ b/cpp/src/Ice/TcpAcceptor.cpp @@ -57,6 +57,24 @@ IceInternal::TcpAcceptor::listen() { Trace out(_logger, _traceLevels->networkCat); out << "accepting tcp connections at " << toString(); + + if(_traceLevels->network >= 3) + { + vector<string> interfaces = + getHostsForEndpointExpand(inetAddrToString(_addr), _instance->protocolSupport(), true); + if(!interfaces.empty()) + { + out << "\nlocal interfaces: "; + for(unsigned int i = 0; i < interfaces.size(); ++i) + { + if(i != 0) + { + out << ", "; + } + out << interfaces[i]; + } + } + } } } |