def get_client_protocol_factory(self, scheduler, reactor):
     handler = MessageHandler(scheduler, {"default": self})
     return SchedulerClientFactory.forProtocol(SchedulerProtocol, handler=handler, parser_factory=MessageParser)
Esempio n. 2
0
 def get_client_protocol_factory(self, scheduler, reactor):
     handler = MessageHandler(scheduler, self._outs)
     return SchedulerClientFactory.forProtocol(SchedulerProtocol,
                                               builder_factory=PickleMessageBuilder,
                                               handler=handler,
                                               parser_factory=lambda: PickleMessageParser(2**23))
 def get_client_protocol_factory(self, scheduler, reactor):
     handler = MessageHandler(scheduler, {'default': self})
     return SchedulerClientFactory.forProtocol(SchedulerProtocol,
                                               handler=handler,
                                               parser_factory=MessageParser)