t.c.e._ISSHConnectionCreator(Interface) : interface documentation

Part of twisted.conch.endpoints View Source View In Hierarchy

An _ISSHConnectionCreator knows how to create SSH connections somehow.
Method secureConnection Return a new, connected, secured, but not yet authenticated instance of twisted.conch.ssh.transport.SSHServerTransport or twisted.conch.ssh.transport.SSHClientTransport.
Method cleanupConnection Perform cleanup necessary for a connection object previously returned from this creator's secureConnection method.
def secureConnection(): (source)
Return a new, connected, secured, but not yet authenticated instance of twisted.conch.ssh.transport.SSHServerTransport or twisted.conch.ssh.transport.SSHClientTransport.
def cleanupConnection(connection, immediate): (source)
Perform cleanup necessary for a connection object previously returned from this creator's secureConnection method.
ParametersconnectionAn twisted.conch.ssh.transport.SSHServerTransport or twisted.conch.ssh.transport.SSHClientTransport returned by a previous call to secureConnection. It is no longer needed by the caller of that method and may be closed or otherwise cleaned up as necessary.
immediateIf True don't wait for any network communication, just close the connection immediately and as aggressively as necessary.
API Documentation for Twisted, generated by pydoctor at 2013-11-08 22:07:30.