|
|
|
_set_state(self,
state)
Set _state and notify any threads waiting for the change. |
|
|
|
connect(self,
addr,
port=None,
service=None)
Start establishing TCP connection with given address. |
|
|
|
_connect(self,
addr,
port,
service)
Same as connect, but assumes lock acquired. |
|
|
|
_resolve_srv(self)
Start resolving the SRV record. |
|
|
|
_got_srv(self,
addrs)
Handle SRV lookup result. |
|
|
|
|
|
_got_addresses(self,
name,
port,
addrs)
Handler DNS address record lookup result. |
|
|
|
|
|
|
|
_write(self,
data)
Write raw data to the socket. |
|
|
|
set_target(self,
stream)
Make the stream the target for this transport instance. |
|
|
|
send_stream_head(self,
stanza_namespace,
stream_from,
stream_to,
stream_id=None,
version=u' 1.0 ' ,
language=None)
Send stream head via the transport. |
|
|
|
restart(self)
Restart the stream after SASL or StartTLS handshake. |
|
|
|
|
|
send_element(self,
element)
Send an element via the transport. |
|
|
IOHandlerPrepareResult
|
|
|
fileno(self)
Return file descriptor to poll or select. |
|
|
|
is_readable(self)
Returns:
True when the I/O channel can be read |
|
|
|
|
|
is_writable(self)
Returns:
False as currently the data is always written synchronously |
|
|
|
|
|
|
|
starttls(self,
**kwargs)
Request a TLS handshake on the socket ans switch
to encrypted output. |
|
|
|
|
|
_initiate_starttls(self,
**kwargs)
Initiate starttls handshake over the socket. |
|
|
|
_continue_tls_handshake(self)
Continue a TLS handshake. |
|
|
|
|
|
handle_hup(self)
Handle the 'channel hungup' state. |
|
|
|
|
|
|
|
|
|
disconnect(self)
Disconnect the stream gracefully. |
|
|
|
close(self)
Close the stream immediately, so it won't expect more events. |
|
|
|
_close(self)
Same as _close but expects lock acquired. |
|
|
|
_feed_reader(self,
data)
Feed the stream reader with data received. |
|
|
|
event(self,
event)
Pass an event to the target stream or just log it. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
tuple
|
_dst_addr
socket address currently in use
|
list of tuples
|
_dst_addrs
list of (family, sockaddr) candidates to connect to
|
int
|
_dst_family
address family of the socket
|
unicode
|
_dst_hostname
hostname the transport is connecting to or connected
to
|
unicode
|
_dst_name
requested domain name of the remote service
|
list of tuples
|
_dst_nameports
list of (hostname, port) candidates to connect to
|
int
|
_dst_port
requested port of the remote service
|
unicode
|
_dst_service
requested service name (e.g.
|
bool
|
_eof
True when reading side of the socket is closed
|
Queue.Queue
|
_event_queue
queue to send connection events to
|
bool
|
_hup
True when the writing side of the socket is closed
|
StreamReader
|
_reader
parser for the data received from the socket
|
XMPPSerializer
|
_serializer
XML serializer for data sent over the socket
|
socket.socket
|
_socket
socket currently used by the transport (None if no
|
unicode
|
_state
connection state (one of: None , "resolve-srv",
"resolve-hostname", "connect", "connected", "tls-handshake",
"closing", "closed", "aborted")
|
threading.Condition
|
_state_cond
condition object to synchronize threads over state
change
|
streambase.StreamBase
|
_stream
the stream associated with this transport
|
unicode
|
_tls_state
state of TLS handshake
|
threading.RLock
|
lock
the lock protecting this object
|
XMPPSettings
|
settings
settings for this object
socket is currently open)
|