examples
public class TelnetClientExample extends Object implements Runnable, TelnetNotificationHandler
Also, use of the sendAYT(), getLocalOptionState(), getRemoteOptionState() is demonstrated. When connected, type AYT to send an AYT command to the server and see the result. Type OPT to see a report of the state of the first 25 options.
Method Summary | |
---|---|
static void | main(String[] args)
Main for the TelnetClientExample.
|
void | receivedNegotiation(int negotiation_code, int option_code)
Callback method called when TelnetClient receives an option
negotiation command.
|
void | run()
Reader thread.
|
Parameters: negotiation_code - type of negotiation command received
(RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT)
option_code - code of the option negotiated