I have a Thomson ADSL router that offers a telnet interface. In order to config it, I am using windows Telnet command line.
The communication is "Request -> Results" based. eg. "modem do this", "ok i just did"
What开发者_运维知识库 I want to do is create an application that does this automatically. For example to be able to set a list of commands to be sent to the router.
How can I do such a communication using C#?
Use a TcpClient and wrap the stream with a StreamReader / StreamWriter.
精彩评论