Esempio n. 1
0
    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)
Esempio n. 2
0
    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
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)