class documentation

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

Implements interfaces: twisted.internet.interfaces.IStreamClientEndpoint

View In Hierarchy

TCP client endpoint with an IPv6 configuration.

Method __init__
Method connect Implement IStreamClientEndpoint.connect to connect via TCP, once the hostname resolution is done.
Instance Variable _getaddrinfo A hook used for testing name resolution.
Instance Variable _deferToThread A hook used for testing deferToThread.
Instance Variable _GAI_ADDRESS Index of the address portion in result of getaddrinfo to be used.
Instance Variable _GAI_ADDRESS_HOST Index of the actual host-address in the 5-tuple _GAI_ADDRESS.
Instance Variable _reactor Undocumented
Instance Variable _host Undocumented
Instance Variable _port Undocumented
Instance Variable _timeout Undocumented
Instance Variable _bindAddress Undocumented
Method _nameResolution Resolve the hostname string into a tuple containing the host IPv6 address.
Method _resolvedHostConnect Connect to the server using the resolved hostname.
_getaddrinfo = (source)
A hook used for testing name resolution.
_deferToThread = (source)
A hook used for testing deferToThread.
_GAI_ADDRESS = (source)
Index of the address portion in result of getaddrinfo to be used.
(type: int)
_GAI_ADDRESS_HOST = (source)
Index of the actual host-address in the 5-tuple _GAI_ADDRESS.
(type: int)
def __init__(self, reactor, host, port, timeout=30, bindAddress=None): (source)
ParametersreactorUndocumented
hostAn IPv6 address literal or a hostname with an IPv6 address
portUndocumented
timeoutUndocumented
bindAddressUndocumented
See Alsotwisted.internet.interfaces.IReactorTCP.connectTCP
_reactor = (source)

Undocumented

_host = (source)

Undocumented

_port = (source)

Undocumented

_timeout = (source)

Undocumented

_bindAddress = (source)

Undocumented

def connect(self, protocolFactory): (source)

Implement IStreamClientEndpoint.connect to connect via TCP, once the hostname resolution is done.

def _nameResolution(self, host): (source)

Resolve the hostname string into a tuple containing the host IPv6 address.

def _resolvedHostConnect(self, resolvedHost, protocolFactory): (source)

Connect to the server using the resolved hostname.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.