summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/TCPIOPlugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/sys/TCPIOPlugin.cpp')
-rw-r--r--cpp/src/qpid/sys/TCPIOPlugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/TCPIOPlugin.cpp b/cpp/src/qpid/sys/TCPIOPlugin.cpp
index 8a99d8db71..bd10a5555a 100644
--- a/cpp/src/qpid/sys/TCPIOPlugin.cpp
+++ b/cpp/src/qpid/sys/TCPIOPlugin.cpp
@@ -91,9 +91,11 @@ static class TCPIOPlugin : public Plugin {
opts.connectionBacklog,
opts.tcpNoDelay,
shouldListen));
+
if (shouldListen) {
QPID_LOG(notice, "Listening on TCP/TCP6 port " << protocolt->getPort());
}
+
broker->registerProtocolFactory("tcp", protocolt);
}
}
@@ -103,6 +105,7 @@ AsynchIOProtocolFactory::AsynchIOProtocolFactory(const std::string& host, const
tcpNoDelay(nodelay)
{
if (!shouldListen) {
+ listeningPort = boost::lexical_cast<uint16_t>(port);
return;
}