Subclasses CAN have different constructor signature but connect method SHOULD
be the same.
|
__init__(self,
raise_event,
on_disconnect,
idlequeue,
estabilish_tls,
certs)
Each trasport class can have different constructor but it has to have at
least all the arguments of NonBlockingTransport constructor |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
|
|
send(self,
raw_data,
now=False) |
|
|
|
|
|
onreceive(self,
recv_handler)
Set the on_receive callback. |
|
|
|
|
|
read_timeout(self)
Called when there's no response from server in defined timeout |
|
|
|
read_timeout2(self)
called when there's no response from server in defined timeout |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from nbxmpp.plugin.PlugIn :
PlugIn ,
PlugOut
|