capint
12/2/2015 - 12:49 PM

General >> Network >> Telnet

General >> Network >> Telnet

private TelnetClient telnet;
telnet = new TelnetClient();
//*** Connect to server
telnet.connect("localhost", 12036);

//*** Launch a telnet command
PrintStream out = new PrintStream(telnet.getOutputStream());
out.println("cdo stopserver");
out.flush();