Implements interfaces: twisted.internet.interfaces.IStreamClientEndpoint

A name-based endpoint that connects to the fastest amongst the resolved host addresses.

Method __init__
Method connect Attempts a connection to each address returned by gai, and returns a connection which is established first.
Instance Variable _getaddrinfo A hook used for testing name resolution.
Instance Variable _deferToThread A hook used for testing deferToThread.
Method _nameResolution Resolve the hostname string into a tuple containig the host address.
_getaddrinfo =
A hook used for testing name resolution.
_deferToThread =
A hook used for testing deferToThread.
def __init__(self, reactor, host, port, timeout=30, bindAddress=None): (source)
ParametershostA hostname to connect to. (type: bytes)
timeoutFor each individual connection attempt, the number of seconds to wait before assuming the connection has failed. (type: int)
See Alsotwisted.internet.interfaces.IReactorTCP.connectTCP
def connect(self, protocolFactory): (source)

Attempts a connection to each address returned by gai, and returns a connection which is established first.

def _nameResolution(self, host, port): (source)

Resolve the hostname string into a tuple containig the host address.

API Documentation for Twisted, generated by pydoctor at 2015-09-04 15:29:41.