示例#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
文件: http.py 项目: petrushev/txplaya
    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