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 | 2650ad9be1e8bbc74a5d6c97e320b3459257d4e6 (patch) | |
| tree | f7aeeba9df178aabc896a118464fc2044e53aa6a /cpp/examples/messaging/spout.cpp | |
| parent | 6d7656113980be7ded5651c16e86698c6e220ca5 (diff) | |
| download | qpid-python-2650ad9be1e8bbc74a5d6c97e320b3459257d4e6.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/qpid@931852 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging/spout.cpp')
| -rw-r--r-- | cpp/examples/messaging/spout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/examples/messaging/spout.cpp b/cpp/examples/messaging/spout.cpp index 61b3f88711..9ed8b642c8 100644 --- a/cpp/examples/messaging/spout.cpp +++ b/cpp/examples/messaging/spout.cpp @@ -156,9 +156,9 @@ int main(int argc, char** argv) { Options options(argv[0]); if (options.parse(argc, argv)) { - Connection connection(options.connectionOptions); + Connection connection(options.url, options.connectionOptions); try { - connection.open(options.url); + connection.connect(); Session session = connection.createSession(); Sender sender = session.createSender(options.address); |
