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.SocketHandler
IOException
public void handleSocketAccept(SocketChannel sc)
handleSocketAccept
in interface SampleSocketThread.SocketHandler
public void writeData(String data) throws IOException
IOException
Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.