Package samer.silk

Class Terminal

  • java.lang.Object
    • samer.silk.Terminal


  • public class Terminal
    extends java.lang.Object
    Terminal to acces a remote JVM. Connects to a given port on the remote host, then relays System.in and out to the socket.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Terminal() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void connect(java.net.Socket sock) 
      static void connect(java.net.Socket sock, Procedure readline) 
      static void REPL(java.net.Socket call) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Terminal

        public Terminal()
    • Method Detail

      • connect

        public static void connect(java.net.Socket sock)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • connect

        public static void connect(java.net.Socket sock,
                                   Procedure readline)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • REPL

        public static void REPL(java.net.Socket call)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception