在node中做了一个socket,用windows下的telnet登录到该端口的时候,每按一个键就会发送到socket中去,而在Unix下的telnet,则一直到按下回车后再发送到socket。这样导致socket中的命令分解。
windows telnet要怎么才能整行发送呢?
百度到这个帖子,然而完全没看懂?http://blog.chinaunix.net/uid-20332519-id-3759598.html
认证高级PHP讲师
After connecting via telnet under Windows, press ctrl+] to switch to interactive mode. Then you will have a series of commands available, such as send. Then you can send the entire line of string via send 你的内容
send 你的内容
After connecting via telnet under Windows, press ctrl+] to switch to interactive mode. Then you will have a series of commands available, such as send. Then you can send the entire line of string via
send 你的内容