Hello,
Even I am trying something like this. I use the library commons-net jakarta, actually I'm not getting an error, the server-cons with which I should return match a specific answer, but it returns me nothing. It works in command line via a telnet client.
This is what I test
Code:
PrintStream str = new PrintStream(getOutputStream());
..
str.System.out.println(TelnetCommand.getCommand(TelnetCommand.BREAK));
str.flush();
..
And even I test this
Code:
usr.write(new byte[]{(byte)TelnetCommand.IAC, (byte)TelnetCommand.BREAK});
usr.flush();
Bookmarks