Package ghidra.pty

Interface PtyEndpoint

All Known Subinterfaces:
PtyChild, PtyParent
All Known Implementing Classes:
ConPtyChild, ConPtyEndpoint, ConPtyParent, SshPtyChild, SshPtyEndpoint, SshPtyParent, UnixPtyChild, UnixPtyEndpoint, UnixPtyParent

public interface PtyEndpoint
One end of a pseudo-terminal
  • Method Details

    • getOutputStream

      OutputStream getOutputStream()
      Get the output stream for this end of the pty

      Writes to this stream arrive on the input stream for the opposite end, subject to the terminal's line discipline.

      Returns:
      the output stream
      Throws:
      UnsupportedOperationException - if this end is not local
    • getInputStream

      InputStream getInputStream()
      Get the input stream for this end of the pty

      Writes to the output stream of the opposite end arrive here, subject to the terminal's line discipline.

      Returns:
      the input stream
      Throws:
      UnsupportedOperationException - if this end is not local