Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2013-11-03 20:55:20 +0400
committerYann Leboulanger <asterix@lagaule.org>2013-11-03 20:55:20 +0400
commit9028e61acd48dda5eb8097d2ef168b377fb7226b (patch)
tree910707427764c9f934435ed6c3f3109f385dfac2 /doc
parent8c9aada477cbaa791b3fc9b1c5526d9960d10e5c (diff)
ability to configure cipher list. see #7
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/examples/xsend.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/xsend.py b/doc/examples/xsend.py
index 7b979c7..173dca3 100755
--- a/doc/examples/xsend.py
+++ b/doc/examples/xsend.py
@@ -35,6 +35,8 @@ class Connection:
def __init__(self):
self.jid = nbxmpp.protocol.JID(jidparams['jid'])
self.password = jidparams['password']
+ self.sm = nbxmpp.Smacks(self) # Stream Management
+ self.client_cert = None
def on_auth(self, con, auth):
if not auth:
@@ -59,7 +61,7 @@ class Connection:
def connect(self):
idle_queue = nbxmpp.idlequeue.get_idlequeue()
self.client = nbxmpp.NonBlockingClient(self.jid.getDomain(), idle_queue, caller=self)
- self.con = self.client.connect(self.on_connected, self.on_connection_failed, secure_tuple=('tls', '', ''))
+ self.con = self.client.connect(self.on_connected, self.on_connection_failed, secure_tuple=('tls', '', '', None))
def send_message(self, to_jid, text):
id_ = self.client.send(nbxmpp.protocol.Message(to_jid, text, typ='chat'))