t.i.i.I.listenTCP(port, factory, backlog=50, interface='') : method documentation

Part of twisted.internet.interfaces.IReactorTCP View Source

Connects a given protocol factory to the given numeric TCP/IP port.
Parametersporta port number on which to listen
factorya twisted.internet.protocol.ServerFactory instance
backlogsize of the listen queue
interfaceThe local IPv4 or IPv6 address to which to bind; defaults to '', ie all IPv4 addresses. To bind to all IPv4 and IPv6 addresses, you must call this method twice.
Returnsan object that provides IListeningPort.
RaisesCannotListenErroras defined here twisted.internet.error.CannotListenError, if it cannot listen on this port (e.g., it cannot bind to the required port number)
API Documentation for Twisted, generated by pydoctor at 2015-01-30 14:14:53.