Esempio n. 1
0
    def __init__(self, port=None, host=6660):
        self.active_clients = {}
        self.allocate_channel = UniqueIdAllocator(1000000, 1999999)

        PacketHandler.__init__(self)
        SocketHandler.__init__(self, port, host)
        self.configure()
Esempio n. 2
0
 def configure(self):
     SocketHandler.connect_socket(self)
     self.logger.info("handler online")
 def configure(self):
     SocketHandler.setup_socket(self)
     self.logger.info("server online")
     self.handler = MDHandler(self.host)  # instantiate our handler
 def __init__(self, port=6660, host=None):
     SocketHandler.__init__(self, port, host)
Esempio n. 5
0
    def __init__(self, port=None, host=6660):
        self.registered_channels = {}

        PacketHandler.__init__(self)
        SocketHandler.__init__(self, port, host)
        self.configure()
Esempio n. 6
0
 def __init__(self, port=6667, host=6660):
     SocketHandler.__init__(self, port, host)