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
        )
 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 #4
0
 def __init__(self, config):
     SimarglClient.__init__(self, config)
     Resource.__init__(self)
     self.requests = set()
Example #5
0
 def __init__(self, config):
     SimarglClient.__init__(self, config)
     Resource.__init__(self)
     self.requests = set()
Example #6
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)