将原始数据发送到 TCP 服务器的 Linux 工具 [英] Linux tool to send raw data to a TCP server

查看:16
本文介绍了将原始数据发送到 TCP 服务器的 Linux 工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这不是一个直接的开发"问题,但我需要这些信息来测试开发项目,所以我认为有人可能会遇到类似的问题.

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?

推荐答案

netcattelnet,我过去曾使用过这两种方式来测试基于简单文本的协议.netcat 更灵活.

netcat or telnet, i have used both in the past to test simple text based protocols. netcat is more flexible.

这篇关于将原始数据发送到 TCP 服务器的 Linux 工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆