diff options
author | Ted Ross <tross@apache.org> | 2008-12-18 14:29:26 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2008-12-18 14:29:26 +0000 |
commit | 42c28a2aebf4887006ba80a4274718fb4e264520 (patch) | |
tree | 1bf2d76101150c6023fbb9459b26e9bc720e56d2 /cpp/examples/qmf-agent/example.cpp | |
parent | ac3a06a8c1d5d898d582e015ee53ecd2ac4bad7d (diff) | |
download | qpid-python-42c28a2aebf4887006ba80a4274718fb4e264520.tar.gz |
Added a general ConnectionSettings alternative for agent initialization.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@727726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/qmf-agent/example.cpp')
-rw-r--r-- | cpp/examples/qmf-agent/example.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/examples/qmf-agent/example.cpp b/cpp/examples/qmf-agent/example.cpp index 8c47a0c366..4dec014370 100644 --- a/cpp/examples/qmf-agent/example.cpp +++ b/cpp/examples/qmf-agent/example.cpp @@ -164,6 +164,10 @@ int main_int(int argc, char** argv) singleton = new ManagementAgent::Singleton(); const char* host = argc>1 ? argv[1] : "127.0.0.1"; int port = argc>2 ? atoi(argv[2]) : 5672; + qpid::client::ConnectionSettings settings; + + settings.host = host; + settings.port = port; signal(SIGINT, shutdown); @@ -175,7 +179,7 @@ int main_int(int argc, char** argv) // Start the agent. It will attempt to make a connection to the // management broker - agent->init(string(host), port, 5, false, ".magentdata"); + agent->init(settings, 5, false, ".magentdata"); // Allocate some core objects CoreClass core1(agent, "Example Core Object #1"); |