示例#1
0
 def __init__(self, conn, addr, unionpath):
     self.socket = conn
     self.addr = addr
     self.IP = self.addr[0]
     self.unionpath = unionpath
     self.protocol = protocol.Protocol(self, self.unionpath)
     self.hash = None
     self.username = None
     _thread.start_new_thread(self.client_thread, ())
示例#2
0
 def __init__(self):
     self.unionpath = unionpath.Unionpath()
     self.operator = operators.Operators(self.unionpath)
     self.protocol = protocol.Protocol(self.unionpath)