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 | bba1059633e1c8af39b20ce785c7a89fdc2785d7 (patch) | |
| tree | 5da2727695373aa42cb215ae9670a916fd0c3e78 /qpid/cpp/src | |
| parent | 039e634984f5dbcf1d9271b2e9a364b8a2c228c1 (diff) | |
| download | qpid-python-bba1059633e1c8af39b20ce785c7a89fdc2785d7.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@1410363 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/Broker.cpp | 1 | ||||
| -rw-r--r-- | qpid/cpp/src/qpid/broker/Broker.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/broker/Broker.cpp b/qpid/cpp/src/qpid/broker/Broker.cpp index 96f88da8ea..cb93abfac7 100644 --- a/qpid/cpp/src/qpid/broker/Broker.cpp +++ b/qpid/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/qpid/cpp/src/qpid/broker/Broker.h b/qpid/cpp/src/qpid/broker/Broker.h index 68b9ee8b22..0a8f406dbf 100644 --- a/qpid/cpp/src/qpid/broker/Broker.h +++ b/qpid/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; |
