t.i.i.I.connectTCP(host, port, factory, timeout=30, bindAddress=None) : method documentation

Part of twisted.internet.interfaces.IReactorTCP View Source

Connect a TCP client.
Parametershosta host name
porta port number
factorya twisted.internet.protocol.ClientFactory instance
timeoutnumber of seconds to wait before assuming the connection has failed.
bindAddressa (host, port) tuple of local address to bind to, or None.
ReturnsAn object which provides IConnector. This connector will call various callbacks on the factory when a connection is made, failed, or lost - see ClientFactory docs for details.
API Documentation for Twisted, generated by pydoctor at 2012-09-01 11:44:56.