def __init__(self):
     SignalObject.__init__(self)
     
     #key = (client, authid)
     #value = {'user': user, 'answer': answer}
     self.pending_auths = {}
     
     self.name_list = ""
     self.name_list_dirty = True
 def __init__(self):
     SignalObject.__init__(self)
     
     self.server_list = ""
     self.server_list_dirty = True
     
     #key = client
     #value = (port, time, server_domain, answer)
     self.servers_pending = {}
     
     #key = client
     #value = (port, time, server_domain)
     self.servers = {}
示例#3
0
 def __init__(self, master_ip, master_port, max_clients):
     SignalObject.__init__(self)
 
     self.master_clients = {}
 
     self.master_ip = master_ip
     self.master_port = master_port
 
     self.running = True
     self.interval = 10
     self.next_update = time.time() + self.interval
     
     self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
     self.socket.bind((master_ip, master_port))
     self.socket.listen(max_clients)
 def __init__(self):
     SignalObject.__init__(self)
     
     self.effect_list = ""
     self.effect_list_dirty = True
示例#5
0
 def __init__(self):
     SignalObject.__init__(self)
 def __init__(self):
     SignalObject.__init__(self)
     
     #key = (client, authid)
     #value = {'member': Member, 'answer': answer}
     self.pending_auths = {}
示例#7
0
 def __init__(self):
     SignalObject.__init__(self)
     
     self.state = ClientState()
     self.cn = self.cn_pool.pop(0)