public class TelnetClient extends Object implements SampleSocketThread.SocketHandler
tigase.io library for TLS/SSL client connection. This is
simple telnet client class which can connect to remote server using plain connection or SSL.
| Constructor and Description |
|---|
TelnetClient(String hostname,
int port)
Creates a new
TelnetClient 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) |
static void |
turnDebugOn() |
static String |
version() |
void |
writeData(String data) |
public static String help()
public static void turnDebugOn()
public static String version()
public void handleIOInterface(IOInterface ioifc) throws IOException
handleIOInterface in interface SampleSocketThread.SocketHandlerIOExceptionpublic void handleSocketAccept(SocketChannel sc)
handleSocketAccept in interface SampleSocketThread.SocketHandlerpublic void writeData(String data) throws IOException
IOExceptionCopyright © 2004–2019 "Tigase, Inc.". All rights reserved.