开发者

Most efficient way to communicate with my Router via Telnet

开发者 https://www.devze.com 2023-03-24 18:02 出处:网络
I have a Thomson ADSL router that offers a telnet interface. In order to config it, I am using windows Telnet command line.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消