Package tigase.io

Class TelnetServer

  • All Implemented Interfaces:
    SampleSocketThread.SocketHandler

    public class TelnetServer
    extends java.lang.Object
    implements SampleSocketThread.SocketHandler
    This is sample class demonstrating how to use tigase.io library for TLS/SSL server connection. This is simple telnet server class which can be run to receive plain connections or SSL connections.
    Created: Sun Aug 6 22:27:13 2006
    Author:
    Artur Hefczyc
    • Constructor Detail

      • TelnetServer

        public TelnetServer​(int port)
                     throws java.io.IOException
        Creates a new TelnetServer instance.
        Throws:
        java.io.IOException
    • Method Detail

      • help

        public static java.lang.String help()
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parseParams

        public static void parseParams​(java.lang.String[] args)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • turnDebugOn

        public static void turnDebugOn()
      • version

        public static java.lang.String version()
      • run

        public void run()
                 throws java.io.IOException
        Throws:
        java.io.IOException