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 2017-06-11 10:59:01.