Package tigase.io
Class TelnetClient
java.lang.Object
tigase.io.TelnetClient
- All Implemented Interfaces:
SampleSocketThread.SocketHandler
This is sample class demonstrating how to use
Created: Sun Aug 6 15:14:49 2006
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
- Author:
- Artur Hefczyc
-
Constructor Summary
ConstructorsConstructorDescriptionTelnetClient(String hostname, int port) Creates a newTelnetClientinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleIOInterface(IOInterface ioifc) voidstatic Stringhelp()static voidstatic voidparseParams(String[] args) static voidstatic Stringversion()void
-
Constructor Details
-
TelnetClient
Creates a newTelnetClientinstance.- Throws:
Exception
-
-
Method Details
-
help
-
main
- Throws:
Exception
-
parseParams
- Throws:
Exception
-
turnDebugOn
public static void turnDebugOn() -
version
-
handleIOInterface
- Specified by:
handleIOInterfacein interfaceSampleSocketThread.SocketHandler- Throws:
IOException
-
handleSocketAccept
- Specified by:
handleSocketAcceptin interfaceSampleSocketThread.SocketHandler
-
writeData
- Throws:
IOException
-