I need to develop an application that is able to put out some commands after connecting to an ip with Telnet, and then just logs the ongoing responds;
So I have tried package like PrimS.Telnet and Minimalistic.Telnet; The thing is it works with other telnet servers, but not with this one; All I get are echo's in uppercases:
While when I use Putty (which I can't automate) it does give the right respond:
I have to press one enter first before getting that weird glitch character away
Is this something normal? Am I missing something here why I can't use my C# application with this server?
edit 1: I already found out that my C# does not support some telnet commands that would ask not to echo text back (see Telnet Commands). So my question is how to I parse those telnet commands so I can send them?


Ok small example for you. Method
AskReceivesends a command and waits 200 mileseconds for the answer. It uses Stream to send and receive. If you sendclearTextWriter.WriteLine(commandline)you are sending a string command to your device.