def create_protocol(self):
        """Create a new protocol via the :attr:`protocol_factory`

        This method increase the count of :attr:`sessions` and build
        the protocol passing ``self`` as the producer.
        """
        self.sessions += 1
        protocol = self.protocol_factory(self)
        protocol.copy_many_times_events(self)
        return protocol
def create_protocol ( self ) : self . sessions += 1 protocol = self . protocol_factory ( self ) protocol . copy_many_times_events ( self ) return protocol
Create a new protocol via the :attr:`protocol_factory`

        This method increase the count of :attr:`sessions` and build
        the protocol passing ``self`` as the producer.