t.i.i.IConnector(Interface) : interface documentation

Part of twisted.internet.interfaces View Source View In Hierarchy

Known implementations: twisted.internet.base.BaseConnector, twisted.names.srvconnect.SRVConnector

Object used to interface between connections and protocols.

Each IConnector manages one connection.

Method stopConnecting Stop attempting to connect.
Method disconnect Disconnect regardless of the connection state.
Method connect Try to connect to remote address.
Method getDestination Return destination this will try to connect to.
def stopConnecting(): (source)
Stop attempting to connect.
def disconnect(): (source)
Disconnect regardless of the connection state.

If we are connected, disconnect, if we are trying to connect, stop trying.

def connect(): (source)
Try to connect to remote address.
def getDestination(): (source)
Return destination this will try to connect to.
ReturnsAn object which provides IAddress.
API Documentation for Twisted, generated by pydoctor at 2012-12-26 12:18:15.