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, ())
def __init__(self): self.unionpath = unionpath.Unionpath() self.operator = operators.Operators(self.unionpath) self.protocol = protocol.Protocol(self.unionpath)