Module session :: Class ChatControlSession
[hide private]
[frames] | no frames]

Class ChatControlSession

source code


Instance Methods [hide private]
 
__init__(self, conn, jid, thread_id, type_='chat')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
detach_from_control(self) source code
 
acknowledge_termination(self) source code
 
terminate(self, send_termination=True) source code
 
get_chatstate(self, msg, msgtxt)
Extract chatstate from a <message/> stanza
source code
 
received(self, full_jid_with_resource, msgtxt, tim, encrypted, msg)
Dispatch a received <message> stanza
source code
 
roster_message(self, jid, msg, tim, encrypted=False, msg_type='', subject=None, resource='', msg_id=None, user_nick='', advanced_notif_num=None, xhtml=None, form_node=None, displaymarking=None)
Display the message or show notification in the roster
source code
 
handle_negotiation(self, form) source code

Inherited from common.stanza_session.EncryptedStanzaSession: accept_e2e_alice, accept_e2e_bob, c7lize_mac_id, cancelled_negotiation, compress, decompress, decrypt, decrypt_stanza, decryptcounter, do_retained_secret, encrypt, encrypt_stanza, encryptcounter, fail_bad_negotiation, final_steps_alice, generate_initiator_keys, generate_responder_keys, get_kc_o, get_kc_s, get_shared_secret, hmac, is_xep_200_encrypted, logging_preference, make_dhfield, make_identity, negotiate_e2e, respond_e2e_bob, set_kc_o, set_kc_s, sign, terminate_e2e, verify_identity, verify_options_alice, verify_options_bob

Inherited from common.stanza_session.StanzaSession: generate_thread_id, get_to, is_loggable, reject_negotiation, remove_events, send

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

Class Variables [hide private]

Inherited from common.stanza_session.EncryptedStanzaSession: kc_o, kc_s

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, conn, jid, thread_id, type_='chat')
(Constructor)

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

detach_from_control(self)

source code 

acknowledge_termination(self)

source code 
Overrides: common.stanza_session.StanzaSession.acknowledge_termination

terminate(self, send_termination=True)

source code 
Overrides: common.stanza_session.StanzaSession.terminate

get_chatstate(self, msg, msgtxt)

source code 
Extract chatstate from a <message/> stanza

received(self, full_jid_with_resource, msgtxt, tim, encrypted, msg)

source code 
Dispatch a received <message> stanza

roster_message(self, jid, msg, tim, encrypted=False, msg_type='', subject=None, resource='', msg_id=None, user_nick='', advanced_notif_num=None, xhtml=None, form_node=None, displaymarking=None)

source code 
Display the message or show notification in the roster

handle_negotiation(self, form)

source code