Exemple #1
0
 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))
Exemple #2
0
 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))
Exemple #3
0
 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")
Exemple #4
0
 def __init__(self, server):
     self.parentServer = server
     CustomThread.__init__(self, description="ConsoleThread")
     self.daemon = True # stop the thread on shutdown
Exemple #5
0
 def __init__(self, sock, server):
     self.sock = sock
     self.parentServer = server
     CustomThread.__init__(self, description="AcceptThread")
Exemple #6
0
 def __init__(self, server):
     self.parentServer = server
     CustomThread.__init__(self, description="ConsoleThread")
     self.daemon = True  # stop the thread on shutdown
Exemple #7
0
 def __init__(self, client):
     self.parentClient = client
     CustomThread.__init__(self, description="ListenThread")
Exemple #8
0
 def __init__(self, server):
     self.parentServer = server
     self.msgLock = threading.Lock()
     self.msgQueue = []
     CustomThread.__init__(self, description="ManageThread")
Exemple #9
0
 def __init__(self, uithread, screen):
     self.parent_uithread = uithread
     self.screen = screen
     self.visible_buffer = ""
     CustomThread.__init__(self, description="UIInputThread")
     self.daemon = True
Exemple #10
0
 def __init__(self, uithread, screen):
     self.parent_uithread = uithread
     self.screen = screen
     self.visible_buffer = ""
     CustomThread.__init__(self, description="UIInputThread")
     self.daemon = True
Exemple #11
0
 def __init__(self, sock, server):
     self.sock = sock
     self.parentServer = server
     CustomThread.__init__(self, description="AcceptThread")
Exemple #12
0
 def __init__(self, server):
     self.parentServer = server
     self.msgLock = threading.Lock()
     self.msgQueue = []
     CustomThread.__init__(self, description="MSGCenterThread")
Exemple #13
0
 def __init__(self, server, client_id):
     self.parentServer = server
     self.client_id = client_id
     CustomThread.__init__(self,
                           description="GarbageThread-" +
                           str(self.client_id))
Exemple #14
0
 def __init__(self, server, client_id):
     self.parentServer = server
     self.client_id = client_id
     CustomThread.__init__(self, description="GarbageThread-" + str(self.client_id))