Part of twisted.names.srvconnect View Source View In Hierarchy
Implements interfaces: twisted.internet.interfaces.IConnector
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 |
Parameters | domain | The domain to connect to. If passed as a unicode string, it will be
encoded using idna encoding. (type: bytes
or unicode ) |
defaultPort | Optional 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 ) |
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.