public class ApacheTelnet
extends java.lang.Object
implements java.lang.Runnable, org.apache.commons.net.telnet.TelnetNotificationHandler
Constructor and Description |
---|
ApacheTelnet() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.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.
|
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public void receivedNegotiation(int negotiation_code, int option_code)
receivedNegotiation
in interface org.apache.commons.net.telnet.TelnetNotificationHandler
negotiation_code
- - type of negotiation command received
(RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT)
option_code
- - code of the option negotiated
public void run()
run
in interface java.lang.Runnable
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.