Class TelnetAppender.SocketHandler

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    TelnetAppender

    protected class TelnetAppender.SocketHandler
    extends Thread
    The SocketHandler class is used to accept connections from clients. It is threaded so that clients can connect/disconnect asynchronously.
    • Method Detail

      • finalize

        public void finalize()
        Overrides:
        finalize in class Object
      • close

        public void close()
        make sure we close all network connections when this handler is destroyed.
        Since:
        1.2.15
      • send

        public void send​(String message)
        sends a message to each of the clients in telnet-friendly output.
      • run

        public void run()
        Continually accepts client connections. Client connections are refused when MAX_CONNECTIONS is reached.
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread