def listen(self, protocolFactory):
        """
        Implement L{IStreamServerEndpoint.listen} to listen on a TCP
        socket
        """
        return defer.execute(self._reactor.listenTCP,
                             self._port,
                             protocolFactory,
                             backlog=self._backlog,
                             interface=self._interface)

        Implement L{IStreamServerEndpoint.listen} to listen on a TCP
        socket
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/endpoints.py