|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.io.TelnetClient
public class TelnetClient
This is sample class demonstrating how to use 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 2006
| Constructor Summary | |
|---|---|
TelnetClient(String hostname,
int port)
Creates a new TelnetClient instance. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TelnetClient(String hostname,
int port)
throws Exception
TelnetClient instance.
hostname - port -
Exception| Method Detail |
|---|
public static String help()
public static void main(String[] args)
throws Exception
main method here.
args - a String[] value
Exception
public static void parseParams(String[] args)
throws Exception
args -
Exceptionpublic static void turnDebugOn()
public static String version()
public void handleIOInterface(IOInterface ioifc)
throws IOException
handleIOInterface in interface SampleSocketThread.SocketHandlerioifc -
IOExceptionpublic void handleSocketAccept(SocketChannel sc)
handleSocketAccept in interface SampleSocketThread.SocketHandlersc -
public void writeData(String data)
throws IOException
data -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||