summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0065/stanza.py
blob: ef70a368257c544be16e76e55a49532c673d0748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 = namespace
    name = 'streamhost-used'
    plugin_attrib = 'streamhost-used'
    interfaces = set(('jid',))


class Query(ElementBase):
    """ The query xml element.
    """

    namespace = namespace
    name = 'query'
    plugin_attrib = 'q'
    interfaces = set(('sid', 'activate'))
    sub_interfaces = set(('activate',))