def startProtocol(self):
        """
        Called when a transport is connected to this protocol.

        Will only be called once, even if multiple ports are connected.
        """

        Called when a transport is connected to this protocol.

        Will only be called once, even if multiple ports are connected.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/protocol.py