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.
Created: Sun Aug 6 15:14:49 2006Constructor and Description |
---|
TelnetClient(String hostname,
int port)
Creates a new
TelnetClient instance. |
Modifier and Type | Method and Description |
---|---|
void |
handleIOInterface(IOInterface ioifc)
Method description
|
void |
handleSocketAccept(SocketChannel sc)
Method description
|
static String |
help()
Method description
|
static void |
main(String[] args)
Describe
main method here. |
static void |
parseParams(String[] args)
Method description
|
static void |
turnDebugOn()
Method description
|
static String |
version()
Method description
|
void |
writeData(String data)
Method description
|
public static String help()
public static void main(String[] args) throws Exception
main
method here.args
- a String[]
valueException
public static void parseParams(String[] args) throws Exception
args
- Exception
public static void turnDebugOn()
public static String version()
public void handleIOInterface(IOInterface ioifc) throws IOException
handleIOInterface
in interface SampleSocketThread.SocketHandler
ioifc
- IOException
public void handleSocketAccept(SocketChannel sc)
handleSocketAccept
in interface SampleSocketThread.SocketHandler
sc
- public void writeData(String data) throws IOException
data
- IOException
Copyright © 2019 "Tigase, Inc.". All rights reserved.