|
__init__(self,
socket,
owner,
xmlns=None,
peer=None)
When the session is created it's type (client/server) is
determined from the beginning. |
source code
|
|
|
StartStream(self)
This method is used to initialise the internal xml expat parser
and to send initial stream header (in case of client connection). |
source code
|
|
|
|
|
|
|
|
|
push_queue(self,
failreason=' urn:ietf:params:xml:ns:xmpp-stanzas recipient-unavailable ' )
If stream is authenticated than move items from "send"
queue to "immidiatedly send" queue. |
source code
|
|
|
|
|
_dispatch(self,
stanza,
trusted=0)
This is callback that is used to pass the received stanza forth to
owner's dispatcher _if_ the stream is authorised. |
source code
|
|
|
_catch_stream_id(self,
ns=None,
tag=' stream ' ,
attrs={ } )
This callback is used to detect the stream namespace of incoming
stream. |
source code
|
|
|
_stream_open(self,
ns=None,
tag=' stream ' ,
attrs={ } )
This callback is used to handle opening stream tag of the incoming
stream. |
source code
|
|
|
feature(self,
feature)
Declare some stream feature as activated one. |
source code
|
|
|
|
|
|
|
|
|
_destroy_socket(self)
Break cyclic dependancies to let python's GC free memory right
now. |
source code
|
|
|
start_feature(self,
f)
Declare some feature as "negotiating now" to prevent
other features from start negotiating. |
source code
|
|
|
stop_feature(self,
f)
Declare some feature as "negotiated" to allow other
features start negotiating. |
source code
|
|
|
|
|
|
|
set_stream_state(self,
newstate)
Change the underlaying XML stream state Stream starts with
STREAM__NOT_OPENED and then proceeds with STREAM__OPENED,
STREAM__CLOSING and STREAM__CLOSED states. |
source code
|
|