http://www.qtcentre.org/archive/index.php/t-29462.html
文章提到使用netcat 来作为服务端:
I use netcat to capture the output and provide the server side socket. I'm piping data into netcat to trigger my client side socket write:
here's the command I use: nc -l -s 127.0.0.1 -p 7496 < zeros.txt
这个方法方法的能力有限, 他无法实现交互式的应答。 应该有类似shell一样的、网络通讯的shell环境吧? 没有的话,用python来实现一个也不难~ :)

文章介绍如何利用netcat作为服务端进行数据接收,并通过命令行方式与客户端进行交互。尽管方法有限,但作者建议使用Python实现更灵活的网络通讯shell环境。
1103

被折叠的 条评论
为什么被折叠?



