Package tigase.io
Class TelnetServer
- java.lang.Object
-
- tigase.io.TelnetServer
-
- All Implemented Interfaces:
SampleSocketThread.SocketHandler
public class TelnetServer extends java.lang.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(java.nio.channels.SocketChannel sc)static java.lang.Stringhelp()static voidmain(java.lang.String[] args)static voidparseParams(java.lang.String[] args)voidrun()static voidturnDebugOn()static java.lang.Stringversion()
-
-
-
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()
-
handleIOInterface
public void handleIOInterface(IOInterface ioifc) throws java.io.IOException
- Specified by:
handleIOInterfacein interfaceSampleSocketThread.SocketHandler- Throws:
java.io.IOException
-
handleSocketAccept
public void handleSocketAccept(java.nio.channels.SocketChannel sc) throws java.io.IOException- Specified by:
handleSocketAcceptin interfaceSampleSocketThread.SocketHandler- Throws:
java.io.IOException
-
run
public void run() throws java.io.IOException- Throws:
java.io.IOException
-
-