interface documentation

class twisted.conch.interfaces.ISession(Interface): (source)

Known implementations: twisted.conch.manhole_ssh.TerminalSession, twisted.conch.unix.SSHSessionForUnixConchUser

View In Hierarchy

Undocumented

Method getPty Get a pseudo-terminal for use by a shell or command.
Method openShell Open a shell and connect it to proto.
Method execCommand Execute a command.
Method windowChanged Called when the size of the remote screen has changed.
Method eofReceived Called when the other side has indicated no more data will be sent.
Method closed Called when the session is closed.
def getPty(term, windowSize, modes): (source)

Get a pseudo-terminal for use by a shell or command.

If a pseudo-terminal is not available, or the request otherwise fails, raise an exception.

def openShell(proto): (source)

Open a shell and connect it to proto.

Parametersprotoa ProcessProtocol instance.
def execCommand(proto, command): (source)

Execute a command.

Parametersprotoa ProcessProtocol instance.
commandUndocumented
def windowChanged(newWindowSize): (source)

Called when the size of the remote screen has changed.

def eofReceived(): (source)

Called when the other side has indicated no more data will be sent.

def closed(): (source)

Called when the session is closed.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.