def __init__(self, config): SimarglClient.__init__(self, config) from twisted.internet import reactor self.factory = SimarglServerFactory(self) StreamServerEndpointService.__init__( self, TCP4ServerEndpoint(reactor, int(config.get('port', 9666)), interface=config.get('host')), self.factory)
def __init__(self, config): SimarglClient.__init__(self, config) from twisted.internet import reactor self.factory = SimarglServerFactory(self) StreamServerEndpointService.__init__( self, TCP4ServerEndpoint(reactor, int(config.get('port', 9666)), interface=config.get('host')), self.factory )
def startService(self): SimarglClient.startService(self)
def startService(self): SimarglClient.startService(self) from twisted.internet import reactor reactor.connectTCP(self.host, int(self.port), self.factory)
def __init__(self, config): SimarglClient.__init__(self, config) self.host, self.port = config.get('host', 'localhost'), int( config.get('port', 9666)) self.factory = SimarglClientFactory(self)
def __init__(self, config): SimarglClient.__init__(self, config) Resource.__init__(self) self.requests = set()
def startService(self): SimarglClient.startService(self) LoopingCall(self.loop).start(10)
def __init__(self, config): SimarglClient.__init__(self, config) self.host, self.port = config.get("host", "localhost"), int(config.get("port", 9666)) self.factory = SimarglClientFactory(self)