diff options
author | Rafael H. Schloming <rhs@apache.org> | 2010-03-31 21:17:09 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2010-03-31 21:17:09 +0000 |
commit | e4ecd45446308940c5cccd650386ed9526c1866a (patch) | |
tree | a145aec350e4769fac79e832ca6852b3abfbbdc9 /python/qpid/messaging/endpoints.py | |
parent | 2e29faa768283390452b7d432db28d43cd4a27aa (diff) | |
download | qpid-python-e4ecd45446308940c5cccd650386ed9526c1866a.tar.gz |
added SSL support to API
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929717 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/messaging/endpoints.py')
-rw-r--r-- | python/qpid/messaging/endpoints.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/qpid/messaging/endpoints.py b/python/qpid/messaging/endpoints.py index 3a23cd6e28..c3f76e4adc 100644 --- a/python/qpid/messaging/endpoints.py +++ b/python/qpid/messaging/endpoints.py @@ -79,7 +79,6 @@ class Connection: @return: a disconnected Connection """ self.host = host - self.port = default(port, AMQP_PORT) self.username = username self.password = password self.mechanisms = options.get("mechanisms") @@ -87,9 +86,15 @@ class Connection: self.reconnect = options.get("reconnect", False) self.reconnect_delay = options.get("reconnect_delay", 3) self.reconnect_limit = options.get("reconnect_limit") + self.transport = options.get("transport", "plain") self.backups = options.get("backups", []) self.options = options + if self.transport == "tls": + self.port = default(port, AMQPS_PORT) + else: + self.port = default(port, AMQP_PORT) + self.id = str(uuid4()) self.session_counter = 0 self.sessions = {} |