summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0065/stanza.py
diff options
context:
space:
mode:
authorSandro Munda <sandro.munda@guardis.com>2012-06-03 19:56:56 +0200
committerSandro Munda <sandro.munda@guardis.com>2012-06-07 18:38:56 +0200
commita14979375b164aa44071dae30521ec15363f3b7a (patch)
treec5cdec550f287532cec0ae251f9c75cefc9409c6 /sleekxmpp/plugins/xep_0065/stanza.py
parent40ef4a16b1de10333f0e4bf6f884309693681cbb (diff)
downloadslixmpp-a14979375b164aa44071dae30521ec15363f3b7a.tar.gz
slixmpp-a14979375b164aa44071dae30521ec15363f3b7a.tar.bz2
slixmpp-a14979375b164aa44071dae30521ec15363f3b7a.tar.xz
slixmpp-a14979375b164aa44071dae30521ec15363f3b7a.zip
Added a partial support of the XEP 0065 - Socks5 Bytestreams
Diffstat (limited to 'sleekxmpp/plugins/xep_0065/stanza.py')
-rw-r--r--sleekxmpp/plugins/xep_0065/stanza.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0065/stanza.py b/sleekxmpp/plugins/xep_0065/stanza.py
new file mode 100644
index 00000000..4d33be98
--- /dev/null
+++ b/sleekxmpp/plugins/xep_0065/stanza.py
@@ -0,0 +1,38 @@
+from sleekxmpp.xmlstream import ElementBase
+
+# The protocol namespace defined in the Socks5Bytestream (0065) spec.
+namespace = 'http://jabber.org/protocol/bytestreams'
+
+
+class StreamHost(ElementBase):
+ """ The streamhost xml element.
+ """
+
+ namespace = namespace
+ name = 'streamhost'
+ plugin_attrib = 'streamhost'
+ interfaces = set(('host', 'jid', 'port'))
+
+
+class StreamHostUsed(ElementBase):
+ """ The streamhost-used xml element.
+ """
+
+ namespace = 'http://jabber.org/protocol/bytestreams'
+ name = 'streamhost-used'
+ plugin_attrib = 'streamhost-used'
+ interfaces = set(('jid',))
+
+
+class Query(ElementBase):
+ """ The query xml element.
+ """
+
+ namespace = 'http://jabber.org/protocol/bytestreams'
+ name = 'query'
+ plugin_attrib = 'q'
+ interfaces = set(('sid', 'activate'))
+ sub_interfaces = set(('activate',))
+
+
+