Problem with apache.commons.telnet library
I am using the apache.commons.net.telnet library (Example of use of Telnet Client : Telnet*«*Network Protocol*«*Java)
I used the example provided in the link above to connect to a Mikrotik router board but I got the following issues:
1- When I use the telnet client in windows to communicate with the Mikrotik everything works just fine and there is no delay, but when I use the library mentioned above it takes about 4 to 5 seconds to get a response from the device for every command.
2- I am encountering what seems to be encoding problems: for example when I type the username and password I get [m36 [m36 [m in the end of the reply which I don't get when I use the Telnet client provided by windows.
Although this seems to be a very dump question but any ideas, comments, reviews because I have tried too many different solutions but I ended up with nothing.
Any recommendations for alternative telnet libraries are more than welcome.