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()
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)
def __init__(self, port=None, host=6660): self.registered_channels = {} PacketHandler.__init__(self) SocketHandler.__init__(self, port, host) self.configure()
def __init__(self, port=6667, host=6660): SocketHandler.__init__(self, port, host)