diff options
author | Andrew Stitcher <astitcher@apache.org> | 2012-11-16 14:27:19 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2012-11-16 14:27:19 +0000 |
commit | 2b0b54fcd00e308030391f5e23e8a5c18267413c (patch) | |
tree | dd73c008fed5b5b0aa1e98bf681fe1475e374353 /cpp/src | |
parent | fb50d4028b8fb7ef474cd58df672fa699aa338d3 (diff) | |
download | qpid-python-2b0b54fcd00e308030391f5e23e8a5c18267413c.tar.gz |
QPID-3351: Provide ability to specify the network interfaces
Added broker interface option to specify network interfaces for listening
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1410363 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/broker/Broker.cpp | 1 | ||||
-rw-r--r-- | cpp/src/qpid/broker/Broker.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Broker.cpp b/cpp/src/qpid/broker/Broker.cpp index 96f88da8ea..cb93abfac7 100644 --- a/cpp/src/qpid/broker/Broker.cpp +++ b/cpp/src/qpid/broker/Broker.cpp @@ -144,6 +144,7 @@ Broker::Options::Options(const std::string& name) : ("data-dir", optValue(dataDir,"DIR"), "Directory to contain persistent data generated by the broker") ("no-data-dir", optValue(noDataDir), "Don't use a data directory. No persistent configuration will be loaded or stored") ("port,p", optValue(port,"PORT"), "Tells the broker to listen on PORT") + ("interface", optValue(listenInterfaces, "<interface name>|<interface address>"), "Which network interfaces to use to listen for incoming connections") ("worker-threads", optValue(workerThreads, "N"), "Sets the broker thread pool size") ("connection-backlog", optValue(connectionBacklog, "N"), "Sets the connection backlog limit for the server socket") ("mgmt-enable,m", optValue(enableMgmt,"yes|no"), "Enable Management") diff --git a/cpp/src/qpid/broker/Broker.h b/cpp/src/qpid/broker/Broker.h index 68b9ee8b22..0a8f406dbf 100644 --- a/cpp/src/qpid/broker/Broker.h +++ b/cpp/src/qpid/broker/Broker.h @@ -103,6 +103,7 @@ class Broker : public sys::Runnable, public Plugin::Target, bool noDataDir; std::string dataDir; uint16_t port; + std::vector<std::string> listenInterfaces; int workerThreads; int connectionBacklog; bool enableMgmt; |