From bba1059633e1c8af39b20ce785c7a89fdc2785d7 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Fri, 16 Nov 2012 14:27:19 +0000 Subject: 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 --- qpid/cpp/src/qpid/broker/Broker.cpp | 1 + qpid/cpp/src/qpid/broker/Broker.h | 1 + 2 files changed, 2 insertions(+) (limited to 'qpid/cpp/src') 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, "|"), "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 listenInterfaces; int workerThreads; int connectionBacklog; bool enableMgmt; -- cgit v1.2.1