Receiving data

Top  Previous  Next

Once a connection has been established and option negotiation completed you will begin to receive data from the telnet server. All data received from the telnet server is handled using the TelnetDataReceivedEvent event. To capture the TelnetDataReceivedEvent overload the TelnetListener#dataReceived or TelnetAdapter#dataReceived methods.

 

Example

 

// caputure TelnetDataReceivedEvent event

public void dataReceived(TelnetDataReceivedEvent event) {

 System.out.println("Data received: " + event.getData());

}





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC