Package common :: Module connection_handlers :: Class ConnectionHandlersBase
[hide private]
[frames] | no frames]

Class ConnectionHandlersBase

source code

Instance Methods [hide private]
 
__init__(self) source code
 
_ErrorCB(self, con, iq_obj) source code
 
_LastResultCB(self, con, iq_obj) source code
 
get_sessions(self, jid)
Get all sessions for the given full jid
source code
 
get_or_create_session(self, fjid, thread_id)
Return an existing session between this connection and 'jid', returns a new one if none exist
source code
 
find_session(self, jid, thread_id) source code
 
terminate_sessions(self, send_termination=False)
Send termination messages and delete all active sessions
source code
 
delete_session(self, jid, thread_id) source code
 
find_null_session(self, jid)
Find all of the sessions between us and a remote jid in which we haven't received a thread_id yet and returns the session that we last sent a message to
source code
 
find_controlless_session(self, jid, resource=None)
Find an active session that doesn't have a control attached
source code
 
make_new_session(self, jid, thread_id=None, type_='chat', cls=None)
Create and register a new session
source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

_ErrorCB(self, con, iq_obj)

source code 

_LastResultCB(self, con, iq_obj)

source code 

get_sessions(self, jid)

source code 
Get all sessions for the given full jid

get_or_create_session(self, fjid, thread_id)

source code 
Return an existing session between this connection and 'jid', returns a new one if none exist

find_session(self, jid, thread_id)

source code 

terminate_sessions(self, send_termination=False)

source code 
Send termination messages and delete all active sessions

delete_session(self, jid, thread_id)

source code 

find_null_session(self, jid)

source code 
Find all of the sessions between us and a remote jid in which we haven't received a thread_id yet and returns the session that we last sent a message to

find_controlless_session(self, jid, resource=None)

source code 
Find an active session that doesn't have a control attached

make_new_session(self, jid, thread_id=None, type_='chat', cls=None)

source code 

Create and register a new session

thread_id=None to generate one.
type_ should be 'chat' or 'pm'.