def __init__(self):
    self.server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    self.server.setblocking(False)
    self.server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    self.server_address = ('0.0.0.0', 5000)
    self.server.bind(self.server_address)
    self.server.listen(1000)
    self.inputs = [self.server]
    self.outputs = []
    self.message_queues = {}
    self.timeout = 20
def __init__(self):
    self.server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    self.server.setblocking(False)
    self.server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    self.server_address = ('0.0.0.0', 5000)
    self.server.bind(self.server_address)
    self.server.listen(1000)
    self.inputs = [self.server]
    self.outputs = []
    self.message_queues = {}
    self.timeout = 20