def __init__(self, listeniface, listenport, fwrulefile, keydir): """Set up the logic. This is expected to be run with root privileges. Stuff like opening listening sockets is done here. @param listeniface: the ip address to listen on for incoming connections @type listeniface: str @param listenport: tcp port number to listen on @type listenport: int @param fwrulefile: name of the hip firewall's rulefile @type fwrulefile: str @param keydir: directory where src_hi-keys are stored @type keydir: str """ # Run as root self.fwrulefile = fwrulefile self.keydir = keydir self.server = ConfigurationInterfaceServer(self, listeniface, listenport)