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 hostname or an IPv4 or IPv6 address literal. (type: bytes)
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 2014-05-12 18:27:00.