def __init__(self, ID, conn, server): self.ID = ID self.sock = conn[0] self.addr = conn[1] self.sock.settimeout(0.2) self.parentServer = server self.pendingMsgs = [] self.msgLock = threading.Lock() CustomThread.__init__(self, description="ClientThread-" + str(self.ID))
def __init__(self, client): self.parent_client = client self.screen = None self.msg_queue = [] self.msg_queue_mutex = Lock() self.max_viewable_msgs = 10 # will be adjusted self.cmd_line_nr = 13 # " self.cmd_line_len = 80 # " self.cmd_cursor_pos = 0 # @ beginning of cmd line self.ui_input_thread = None CustomThread.__init__(self, description="UIThread")
def __init__(self, server): self.parentServer = server CustomThread.__init__(self, description="ConsoleThread") self.daemon = True # stop the thread on shutdown
def __init__(self, sock, server): self.sock = sock self.parentServer = server CustomThread.__init__(self, description="AcceptThread")
def __init__(self, client): self.parentClient = client CustomThread.__init__(self, description="ListenThread")
def __init__(self, server): self.parentServer = server self.msgLock = threading.Lock() self.msgQueue = [] CustomThread.__init__(self, description="ManageThread")
def __init__(self, uithread, screen): self.parent_uithread = uithread self.screen = screen self.visible_buffer = "" CustomThread.__init__(self, description="UIInputThread") self.daemon = True
def __init__(self, server): self.parentServer = server self.msgLock = threading.Lock() self.msgQueue = [] CustomThread.__init__(self, description="MSGCenterThread")
def __init__(self, server, client_id): self.parentServer = server self.client_id = client_id CustomThread.__init__(self, description="GarbageThread-" + str(self.client_id))