public class TelnetServer extends Object implements SampleSocketThread.SocketHandler
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.
Constructor and Description |
---|
TelnetServer(int port)
Creates a new
TelnetServer instance. |
Modifier and Type | Method and Description |
---|---|
void |
handleIOInterface(IOInterface ioifc) |
void |
handleSocketAccept(SocketChannel sc) |
static String |
help() |
static void |
main(String[] args) |
static void |
parseParams(String[] args) |
void |
run() |
static void |
turnDebugOn() |
static String |
version() |
public TelnetServer(int port) throws IOException
TelnetServer
instance.port
- IOException
public static String help()
public static void turnDebugOn()
public static String version()
public void handleIOInterface(IOInterface ioifc) throws IOException
handleIOInterface
in interface SampleSocketThread.SocketHandler
IOException
public void handleSocketAccept(SocketChannel sc) throws IOException
handleSocketAccept
in interface SampleSocketThread.SocketHandler
IOException
public void run() throws IOException
IOException
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.