Ejemplo 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()
Ejemplo n.º 2
0
 def configure(self):
     SocketHandler.connect_socket(self)
     self.logger.info("handler online")
Ejemplo n.º 3
0
 def configure(self):
     SocketHandler.setup_socket(self)
     self.logger.info("server online")
     self.handler = MDHandler(self.host)  # instantiate our handler
Ejemplo n.º 4
0
 def __init__(self, port=6660, host=None):
     SocketHandler.__init__(self, port, host)
Ejemplo n.º 5
0
    def __init__(self, port=None, host=6660):
        self.registered_channels = {}

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