Exemple #1
0
 def __init__(self, *args, **kwargs):
     TCPConnectionFactory.__init__(self, *args, **kwargs)
     self.dispatch_connections = {}
     self.factory = DispatchProtocolFactory(self)
     port = int(config['global']['dispatch.port'])
     logger.info('Listening Orbit@%s (legacy dispatch protocol)' % port)
     reactor.listenTCP(port, self.factory)
Exemple #2
0
 def __init__(self, *args, **kwargs):
     TCPConnectionFactory.__init__(self, *args, **kwargs)
     self.client = ProxyClient()
Exemple #3
0
 def __init__(self, *args, **kwargs):
   TCPConnectionFactory.__init__(self, *args, **kwargs)
   self.connections['ABC'] = EchoConnection(self, 'ABC')