用于将原始数据发送到TCP服务器的Linux工具 [英] Linux tool to send raw data to a TCP server
问题描述
我知道这不是直接的开发"问题,但我需要此信息来测试开发项目,因此我认为有人可能遇到过类似的问题.
I am aware that this is not a direct 'development' question but I need this info to test a development project, so I think someone could've hit similar problem.
我将测试运行TCP服务器的软件,并根据发送的命令答复一些答案.我将测试该软件,如果运行不正常,则不想编写代码.因此,我想发送这些命令并测试驱动服务器软件.
I will test a software that runs a TCP server and according to sent commands replies some answers. I will test the software and do not want to write code if it doesn't work well. So I want to send those commands and test drive the server software.
如何在Linux机器上实现这一目标?
How can I achieve this with a Linux box?
推荐答案
netcat 或 telnet ,过去我都使用这两种方法来测试基于简单文本的协议. netcat更灵活.
netcat or telnet, i have used both in the past to test simple text based protocols. netcat is more flexible.
这篇关于用于将原始数据发送到TCP服务器的Linux工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!