Example #1
0
 def _create_factory(self):
     factory = ClientFactory()
     factory.protocol = self.TCPStreamClientProtocol
     factory.data_received = self._data_received
     factory.connection_lost = self._connection_lost
     return factory