class documentation

TCP client endpoint with an IPv6 configuration.

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

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

def _nameResolution(self, host):

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

def _resolvedHostConnect(self, resolvedHost: str, protocolFactory: IProtocolFactory) -> Deferred[IProtocol]:

Connect to the server using the resolved hostname.

_GAI_ADDRESS: int =

Index of the address portion in result of getaddrinfo to be used.

Value
4
_GAI_ADDRESS_HOST: int =

Index of the actual host-address in the 5-tuple _GAI_ADDRESS.

Value
0
_bindAddress =

Undocumented

_deferToThread =

A hook used for testing deferToThread.

_getaddrinfo =

A hook used for testing name resolution.

_host =

Undocumented

_port =

Undocumented

_reactor =

Undocumented

_timeout =

Undocumented