Implements interfaces: twisted.internet.interfaces.IConnector

A connector that looks up DNS SRV records. See RFC2782.

Method __init__ No summary
Method connect Start connection to remote server.
Method pickServer Undocumented
Method stopConnecting Stop attempting to connect.
Method disconnect Disconnect whatever our are state is.
Method getDestination Return destination this will try to connect to.
Method connectionFailed Undocumented
Method connectionLost Undocumented
Method _ebGotServers Undocumented
Method _cbGotServers Undocumented
Method _ebServiceUnknown Connect to the default port when the service name is unknown.
Method _serverCmp Undocumented
Method _reallyConnect Undocumented
def __init__(self, reactor, service, domain, factory, protocol='tcp', connectFuncName='connectTCP', connectFuncArgs=(), connectFuncKwArgs={}, defaultPort=None): (source)
ParametersdomainThe domain to connect to. If passed as a unicode string, it will be encoded using idna encoding. (type: bytes or unicode)
defaultPortOptional default port number to be used when SRV lookup fails and the service name is unknown. This should be the port number associated with the service name as defined by the IANA registry. (type: int)
def connect(self): (source)

Start connection to remote server.

def _ebGotServers(self, failure): (source)
Undocumented
def _cbGotServers(self, (answers, auth, add)): (source)
Undocumented
def _ebServiceUnknown(self, failure): (source)

Connect to the default port when the service name is unknown.

If no SRV records were found, the service name will be passed as the port. If resolving the name fails with error.ServiceNameUnknownError, a final attempt is done using the default port.

def _serverCmp(self, a, b): (source)
Undocumented
def pickServer(self): (source)
Undocumented
def _reallyConnect(self): (source)
Undocumented
def stopConnecting(self): (source)

Stop attempting to connect.

def disconnect(self): (source)

Disconnect whatever our are state is.

def getDestination(self): (source)

Return destination this will try to connect to.

ReturnsAn object which provides IAddress.
def connectionFailed(self, reason): (source)
Undocumented
def connectionLost(self, reason): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2015-11-29 11:40:45.