使用netcat来作为socket服务端
2012-07-08 22:56
344 查看
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 来作为服务端:
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来实现一个也不难~ :)
相关文章推荐
- java socket 多线程通讯 使用mina作为服务端
- Flash使用xmlsocket与.net服务端异步通信
- 低功耗蓝牙BLE外围模式(peripheral)-使用BLE作为服务端
- Socket的使用实例,控制台上的编程。嗨!这里是服务端,您已连接成功!
- socket.io使用netscaler作为代理服务器进行转发时可能出现的问题及其处理办法
- 使用socket实现简单的客户端和服务端通信(C#语言)
- 在python中编写socket服务端模块(一):使用select
- WP8之Socket ——作为服务端接收消息
- Cocos2dx3.x使用socket创建服务端和客户端改进
- 不应该使用Connected属性作为Socket是否连接上的依据
- 使用Socket,让连接客户端可以对服务端执行相应的指令
- 使用PHP创建一个socket服务端
- 安卓使用Socket发送中文,C语言服务端接收乱码问题解决方案
- 低功耗蓝牙BLE外围模式(peripheral)-使用BLE作为服务端
- 在python中编写socket服务端模块(一):使用select
- 使用Node.js+socket.io制作服务端,unity+socket.io for unity 制作客户端 ,验证位置同步Demo
- 基于socket的客户端和服务端聊天简单使用 附Demo
- Socket 服务端使用多线程实现多客户端通讯实例
- Android使用Socket编程连接服务端