It is used for simple XMPP connection. Can be connected via proxy and can
estabilish TLS connection.
    |  | 
        
          | __init__(self,
        raise_event,
        on_disconnect,
        idlequeue,
        estabilish_tls,
        certs,
        proxy_dict=None) 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 |  | 
    |  |  | 
    |  | 
        
          | _on_connect(self) Preceed invoking of on_connect callback. TCP connection is already
estabilished by this time
 | source code |  | 
    |  | 
        
          | tls_init(self,
        on_succ,
        on_fail) Estabilishes TLS/SSL using this TCP connection by plugging a
NonBlockingTLS module
 | source code |  | 
    |  | 
        
          | pollin(self) Called by idlequeu when receive on plugged socket is possible
 | source code |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  | 
        
          | send(self,
        raw_data,
        now=False) Append raw_data to the queue of messages to be send. If supplied data is
unicode string, encode it to utf-8.
 | source code |  | 
    |  |  | 
    |  |  | 
    |  | 
        
          | _do_send(self) Called when send() to connected socket is possible. First message from
sendqueue will be sent
 | source code |  | 
    |  | 
        
          | _do_receive(self) Reads all pending incoming data. Will call owner's disconnected() method
if appropriate
 | source code |  | 
    |  | 
        
          | _on_receive(self,
        data) Preceeds on_receive callback. It peels off and checks HTTP headers in
HTTP classes, in here it just calls the callback
 | source code |  | 
  
    | Inherited from NonBlockingTransport:get_fd,get_state,onreceive,plugin,plugout,read_timeout2,renew_send_timeout,renew_send_timeout2,set_send_timeout,set_send_timeout2,set_state,set_timeout2 Inherited from plugin.PlugIn:PlugIn,PlugOut |