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)
Example #2
0
    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
        )
Example #3
0
 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)
Example #6
0
 def __init__(self, config):
     SimarglClient.__init__(self, config)
     Resource.__init__(self)
     self.requests = set()
Example #7
0
 def startService(self):
     SimarglClient.startService(self)
     LoopingCall(self.loop).start(10)
Example #8
0
 def __init__(self, config):
     SimarglClient.__init__(self, config)
     Resource.__init__(self)
     self.requests = set()
Example #9
0
    def startService(self):
        SimarglClient.startService(self)
        from twisted.internet import reactor

        reactor.connectTCP(self.host, int(self.port), self.factory)
Example #10
0
 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)