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
ConstructorDescriptionTelnetClient
(String hostname, int port) Creates a newTelnetClient
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleIOInterface
(IOInterface ioifc) void
static String
help()
static void
static void
parseParams
(String[] args) static void
static String
version()
void
-
Constructor Details
-
TelnetClient
Creates a newTelnetClient
instance.- Throws:
Exception
-
-
Method Details
-
help
-
main
- Throws:
Exception
-
parseParams
- Throws:
Exception
-
turnDebugOn
public static void turnDebugOn() -
version
-
handleIOInterface
- Specified by:
handleIOInterface
in interfaceSampleSocketThread.SocketHandler
- Throws:
IOException
-
handleSocketAccept
- Specified by:
handleSocketAccept
in interfaceSampleSocketThread.SocketHandler
-
writeData
- Throws:
IOException
-