def __init__(self, host=None, port=None, name="Default", building=None): self.name = name self.port = port self.users = {} self._building = building CommandServer.__init__(self, host, port)
def __init__(self, host="", port="", name="Default", building=None): CommandServer.__init__(self, host, port) self.name = name self.port = port self.users = {} self._building = building
def __init__(self, host=None, port=None): """create each room server""" self.rooms = [Room(port=8000 + i, name=name, building=self) for i, name in enumerate(rooms)] for room in self.rooms: room.session_timeout = 1 room.start() CommandServer.__init__(self, host, port)
def __init__(self, host="", port=""): """create each room server""" self.rooms = [ Room(port=8000 + i, name=name, building=self) for i, name in enumerate(rooms) ] for room in self.rooms: room.session_timeout = 1 room.start() CommandServer.__init__(self, host, port)