Пример #1
0
 def run_interface(config):
     factory = ServerFactory()
     factory.protocol = lambda: TelnetTransport(JunctionTelnetInterface)
     port = int(config['App']['TelnetInterfacePort'])
     logging.info("starting telnet cli interface on port %d" % port)
     service = TCPServer(port, factory)
     service.startService()
Пример #2
0
 def startService(self):
     if self.env.config.getbool('ssh', 'autostart'):
         TCPServer.startService(self)
Пример #3
0
 def startService(self):
     if self.env.config.getbool('sftp', 'autostart'):
         TCPServer.startService(self)
Пример #4
0
 def startService(self):
     TCPServer.startService(self)
     # Record the port we were actually assigned
     config.ControlPort = self._port.getHost().port
Пример #5
0
 def startService(self):
     if self.env.config.getbool("manhole", "autostart"):
         TCPServer.startService(self)
Пример #6
0
    def startService(self):
        BaseTCPServer.startService(self)

        protocolFactory = self.args[1]
        mainController = protocolFactory.protocol.requestFactory.mainController
        mainController.onStart()
Пример #7
0
 def startService(self):
     log.msg("Starting %s service .." % self.SERVICENAME)
     TCPServer.startService(self)
     self.isRunning = True
Пример #8
0
 def startService(self):
    log.msg("Starting %s service .." % self.SERVICENAME)
    TCPServer.startService(self)
    self.isRunning = True