#NEWLINE# def __init__( self , address , login = '' , passcode = '' , on_message = None , on_reciept = None , on_error = None , ssl = True ) : #NEWLINE# #INDENT# self . ssl = ssl #NEWLINE# self . address = address #NEWLINE# self . login = login #NEWLINE# self . passcode = passcode #NEWLINE# self . on_message = on_reciept #NEWLINE# self . on_reciept = on_reciept #NEWLINE# self . on_error = on_error #NEWLINE# self . send_q = gevent . queue . Queue ( ) #NEWLINE# self . sock = None #NEWLINE# self . sock_container = [ self . sock ] #NEWLINE# self . sock_ready = gevent . event . Event ( ) #NEWLINE# self . sock_broken = gevent . event . Event ( ) #NEWLINE# ml . ld2 ( 'init Setting sock broken' ) #NEWLINE# self . sock_broken . set ( ) #NEWLINE# self . stopping = False #NEWLINE# self . started = False #NEWLINE# self . send_glet = None #NEWLINE# self . recv_glet = None #NEWLINE# self . sock_glet = None #NEWLINE# self . session = None #NEWLINE# self . server_info = None #NEWLINE# self . msg_id = 0 #NEWLINE# self . sub_id = 0 #NEWLINE# self . no_receipt = set ( ) #NEWLINE# self . start ( )