summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/Url.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-02-13 15:39:59 +0000
committerAlan Conway <aconway@apache.org>2008-02-13 15:39:59 +0000
commit4deb3b4fd425aecd74c8c00983a199dd139df858 (patch)
treef45f1d0b6b974ec1af44bfcd1e8f38df938f39a3 /cpp/src/qpid/Url.cpp
parenteee5501a55c9fe6386df9f43739cebf6cd6f9356 (diff)
downloadqpid-python-4deb3b4fd425aecd74c8c00983a199dd139df858.tar.gz
Broker::connect - connect to URL, return ConnectionInputHandler.
M src/qpid/broker/Broker.cpp M src/qpid/broker/Broker.h M src/qpid/sys/Acceptor.h M src/qpid/sys/AsynchIOAcceptor.cpp AMQBody::match - test for matching frames. M src/qpid/framing/AMQBody.cpp M src/qpid/framing/AMQBody.h Url::throwIfEmpty() - test for empty URL. M src/qpid/Url.cpp M src/qpid/Url.h git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@627484 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/Url.cpp')
-rw-r--r--cpp/src/qpid/Url.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/Url.cpp b/cpp/src/qpid/Url.cpp
index d056edc683..aa53d5cbe2 100644
--- a/cpp/src/qpid/Url.cpp
+++ b/cpp/src/qpid/Url.cpp
@@ -160,6 +160,10 @@ void Url::parseNoThrow(const char* url) {
clear();
}
+void Url::throwIfEmpty() const {
+ throw InvalidUrl("URL contains no addresses");
+}
+
std::istream& operator>>(std::istream& is, Url& url) {
std::string s;
is >> s;