Module transports_nb
source code
Transports are objects responsible for connecting to XMPP server and putting
data to wrapped sockets in in desired form (SSL, TLS, TCP, for HTTP proxy,
for SOCKS5 proxy...)
Transports are not aware of XMPP stanzas and only responsible for low-level
connection handling.
|
|
urisplit(uri)
Function for splitting URI string to tuple (protocol, host, port, path). |
source code
|
|
|
|
|
Imports:
ustr,
PlugIn,
IdleObject,
proxy_connectors,
tls_nb,
socket,
errno,
time,
traceback,
base64,
urlparse,
logging
Function for splitting URI string to tuple (protocol, host, port, path).
e.g. urisplit('http://httpcm.jabber.org:123/webclient') returns ('http',
'httpcm.jabber.org', 123, '/webclient') return 443 as default port if proto
is https else 80
|
log
- Value:
logging.getLogger('gajim.c.x.transports_nb')
|
|
CONNECT_TIMEOUT_SECONDS
timeout to connect to the server socket, it doesn't include auth
- Value:
-
|
DISCONNECT_TIMEOUT_SECONDS
how long to wait for a disconnect to complete
- Value:
-
|
RECV_BUFSIZE
size of the buffer which reads data from server
- Value:
-
|
STATES
- Value:
('DISCONNECTED',
'CONNECTING',
'PROXY_CONNECTING',
'CONNECTED',
'DISCONNECTING')
|
|