XEP 0065

1.6 Documentation

«  XEP 0060   ::   Contents   ::   XEP 0066  »

XEP 0065

class slixmpp.plugins.xep_0065.XEP_0065(xmpp, config=None)[source]
activate(proxy, sid, target, ifrom=None, timeout=None, callback=None)[source]

Activate the socks5 session that has been negotiated.

close()[source]

Closes all proxy sockets.

deactivate(sid)[source]

Closes the proxy socket associated with this SID.

async discover_proxies(jid=None, ifrom=None, timeout=None)[source]

Auto-discover the JIDs of SOCKS5 proxies on an XMPP server.

get_network_address(proxy, ifrom=None, timeout=None, callback=None)[source]

Get the network information of a proxy.

get_socket(sid)[source]

Returns the socket associated to the SID.

async handshake(to, ifrom=None, sid=None, timeout=None)[source]

Starts the handshake to establish the socks5 bytestreams connection.

Stanza elements

class slixmpp.plugins.xep_0065.stanza.Socks5(xml=None, parent=None)[source]
add_streamhost(jid, host, port)[source]
interfaces = {'activate', 'sid'}
name = 'query'
namespace = 'http://jabber.org/protocol/bytestreams'
plugin_attrib = 'socks'
plugin_attrib_map = {'streamhost': <class 'slixmpp.plugins.xep_0065.stanza.StreamHost'>, 'streamhost_used': <class 'slixmpp.plugins.xep_0065.stanza.StreamHostUsed'>, 'streamhosts': <class 'slixmpp.xmlstream.stanzabase.multifactory.<locals>.Multi'>}
plugin_iterables = {<class 'slixmpp.plugins.xep_0065.stanza.StreamHost'>}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/bytestreams}streamhost': <class 'slixmpp.plugins.xep_0065.stanza.StreamHost'>, '{http://jabber.org/protocol/bytestreams}streamhost-used': <class 'slixmpp.plugins.xep_0065.stanza.StreamHostUsed'>, '{jabber:client}stanza': <class 'slixmpp.xmlstream.stanzabase.multifactory.<locals>.Multi'>}
sub_interfaces = {'activate'}
class slixmpp.plugins.xep_0065.stanza.StreamHost(xml=None, parent=None)[source]
get_jid()[source]
interfaces = {'host', 'jid', 'port'}
name = 'streamhost'
namespace = 'http://jabber.org/protocol/bytestreams'
plugin_attrib = 'streamhost'
plugin_multi_attrib = 'streamhosts'
set_jid(value)[source]
class slixmpp.plugins.xep_0065.stanza.StreamHostUsed(xml=None, parent=None)[source]
get_jid()[source]
interfaces = {'jid'}
name = 'streamhost-used'
namespace = 'http://jabber.org/protocol/bytestreams'
plugin_attrib = 'streamhost_used'
set_jid(value)[source]

«  XEP 0060   ::   Contents   ::   XEP 0066  »