Implements interfaces: twisted.internet.interfaces.IStreamClientEndpoint

TCP client endpoint with an IPv4 configuration.

Method __init__
Method connect Implement IStreamClientEndpoint.connect to connect via TCP.
def __init__(self, reactor, host, port, timeout=30, bindAddress=None):
ParametersreactorAn IReactorTCP provider
hostA hostname, used when connecting (type: str)
portThe port number, used when connecting (type: int)
timeoutThe number of seconds to wait before assuming the connection has failed. (type: float or int)
bindAddressA (host, port) tuple of local address to bind to, or None. (type: tuple)
def connect(self, protocolFactory):
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.