class documentation

class twisted.internet.endpoints.TCP4ClientEndpoint: (source)

Implements interfaces: twisted.internet.interfaces.IStreamClientEndpoint

View In Hierarchy

TCP client endpoint with an IPv4 configuration.

Method __init__
Method connect Implement IStreamClientEndpoint.connect to connect via TCP.
Instance Variable _reactor Undocumented
Instance Variable _host Undocumented
Instance Variable _port Undocumented
Instance Variable _timeout Undocumented
Instance Variable _bindAddress Undocumented
def __init__(self, reactor, host, port, timeout=30, bindAddress=None): (source)
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)
_reactor = (source)

Undocumented

_host = (source)

Undocumented

_port = (source)

Undocumented

_timeout = (source)

Undocumented

_bindAddress = (source)

Undocumented

def connect(self, protocolFactory): (source)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.