Package tigase.io
Class TelnetServer
- java.lang.Object
-
- tigase.io.TelnetServer
-
- All Implemented Interfaces:
SampleSocketThread.SocketHandler
public class TelnetServer extends Object implements SampleSocketThread.SocketHandler
This is sample class demonstrating how to usetigase.iolibrary 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 Summary
Constructors Constructor Description TelnetServer(int port)Creates a newTelnetServerinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleIOInterface(IOInterface ioifc)voidhandleSocketAccept(SocketChannel sc)static Stringhelp()static voidmain(String[] args)static voidparseParams(String[] args)voidrun()static voidturnDebugOn()static Stringversion()
-
-
-
Constructor Detail
-
TelnetServer
public TelnetServer(int port) throws IOExceptionCreates a newTelnetServerinstance.- Throws:
IOException
-
-
Method Detail
-
help
public static String help()
-
turnDebugOn
public static void turnDebugOn()
-
version
public static String version()
-
handleIOInterface
public void handleIOInterface(IOInterface ioifc) throws IOException
- Specified by:
handleIOInterfacein interfaceSampleSocketThread.SocketHandler- Throws:
IOException
-
handleSocketAccept
public void handleSocketAccept(SocketChannel sc) throws IOException
- Specified by:
handleSocketAcceptin interfaceSampleSocketThread.SocketHandler- Throws:
IOException
-
run
public void run() throws IOException- Throws:
IOException
-
-