diff options
| author | Gordon Sim <gsim@apache.org> | 2010-04-08 09:49:04 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-04-08 09:49:04 +0000 |
| commit | 13d4a7f61d6b4b9935d88e97d14eda29c9ad0950 (patch) | |
| tree | a796aaab2caad287a9e9f3538a0055b27224840d /qpid/cpp/examples/messaging/queue_sender.cpp | |
| parent | 1102cd63f46516cd5b8c46d17567dcd4669adf0a (diff) | |
| download | qpid-python-13d4a7f61d6b4b9935d88e97d14eda29c9ad0950.tar.gz | |
QPID-664: changed open() to connect(), moved url parameter to constructor, added detach() and isConnected()
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@931852 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/messaging/queue_sender.cpp')
| -rw-r--r-- | qpid/cpp/examples/messaging/queue_sender.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/examples/messaging/queue_sender.cpp b/qpid/cpp/examples/messaging/queue_sender.cpp index f7f0e9bf6d..fa355dbf88 100644 --- a/qpid/cpp/examples/messaging/queue_sender.cpp +++ b/qpid/cpp/examples/messaging/queue_sender.cpp @@ -34,9 +34,9 @@ int main(int argc, char** argv) { const char* url = argc>1 ? argv[1] : "amqp:tcp:127.0.0.1:5672"; int count = argc>2 ? atoi(argv[2]) : 10; - Connection connection; + Connection connection(url); try { - connection.open(url); + connection.connect(); Session session = connection.createSession(); Sender sender = session.createSender("message_queue"); |
