t.i.e.TCP4ClientEndpoint(object) : class documentation

Part of twisted.internet.endpoints View Source View In Hierarchy

Implements interfaces: twisted.internet.interfaces.IStreamClientEndpoint

TCP client endpoint with an IPv4 configuration.
Instance Variables_reactorAn IReactorTCP provider.
_hostThe hostname to connect to as a str (type: str )
_portThe port to connect to as int (type: int )
_timeoutnumber of seconds to wait before assuming the connection has failed. (type: int )
Method __init__ No summary
Method connect Implement IStreamClientEndpoint.connect to connect via TCP.
def __init__(self, reactor, host, port, timeout=30, bindAddress=None): (source)
ParametersreactorAn IReactorTCP provider
hostA hostname, used when connecting
portThe port number, used when connecting
timeoutnumber of seconds to wait before assuming the connection has failed.
bindAddressa (host, port tuple of local address to bind to, or None.
def connect(self, protocolFactory): (source)
Implement IStreamClientEndpoint.connect to connect via TCP.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:27:37.