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 hostname to bind to, defaults to '' (all)
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 2011-10-27 16:12:41.