Package common :: Module stanza_session :: Class StanzaSession
[hide private]
[frames] | no frames]

Class StanzaSession

source code


Instance Methods [hide private]
 
__init__(self, conn, jid, thread_id, type_)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
is_loggable(self) source code
 
get_to(self) source code
 
remove_events(self, types)
Remove events associated with this session from the queue
source code
 
generate_thread_id(self) source code
 
send(self, msg) source code
 
reject_negotiation(self, body=None) source code
 
cancelled_negotiation(self)
A negotiation has been cancelled, so reset this session to its default state
source code
 
terminate(self, send_termination=True) source code
 
acknowledge_termination(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, conn, jid, thread_id, type_)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__

is_loggable(self)

source code 

get_to(self)

source code 

remove_events(self, types)

source code 

Remove events associated with this session from the queue

Returns True if any events were removed (unlike events.py remove_events)

generate_thread_id(self)

source code 

send(self, msg)

source code 

reject_negotiation(self, body=None)

source code 

cancelled_negotiation(self)

source code 
A negotiation has been cancelled, so reset this session to its default state

terminate(self, send_termination=True)

source code 

acknowledge_termination(self)

source code