|
|
__init__(self,
raise_event,
on_disconnect,
idlequeue,
estabilish_tls,
certs,
xmpp_server,
domain,
bosh_dict,
proxy_creds)
Each trasport class can have different constructor but it has to have at
least all the arguments of NonBlockingTransport constructor |
source code
|
|
|
|
connect(self,
conn_5tuple,
on_connect,
on_connect_failure)
Creates and connects transport to server and port defined in conn_5tuple
which should be item from list returned from getaddrinfo |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
send_BOSH(self,
payload)
Tries to send a stanza in payload by appeding it to a buffer and plugging a
free socket for writing. |
source code
|
|
|
|
|
|
|
build_stanza(self,
socket)
Build a BOSH body tag from data in buffers and adds key, rid and ack
attributes to it |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from transports_nb.NonBlockingTransport:
get_fd,
get_state,
plugin,
plugout,
read_timeout,
read_timeout2,
remove_timeout,
renew_send_timeout,
renew_send_timeout2,
set_send_timeout,
set_send_timeout2,
set_state,
set_timeout2
Inherited from plugin.PlugIn:
PlugIn,
PlugOut
|