需要帮助在TCP / IP上发送命令来触发服务器!有人可以帮忙吗? [英] Need help send commands on TCP/IP to trigger a server! Can anyone help?

查看:128
本文介绍了需要帮助在TCP / IP上发送命令来触发服务器!有人可以帮忙吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要编写一个简单的VB程序,将一些命令发送到通过TCP / IP控制的视频服务器(地址192.168.10.220) ,端口12345使用iso-8859-1编码)然后监听OK或ERROR被发回。 
我写了一堆程序,使用串口通讯端口进行外部通讯,但是这个新的视频服务器只能执行TCP / IP。

任何人都可以帮忙处理一些指针或示例脚本很感激,

Alex

推荐答案

Telnet 可能是你可以使用的最简单的东西。

telnet到192.168.10.220端口12345并开始输入字节。

使用ALT + {byte value} on数字键盘。

例如,要发送一个字节65(这是ASCII中的大写字母A),Alt + NumPad6 Alt + NumPad5 确保你在数字之间按住ALT键,然后在最后释放一次。

这样:
按住Alt键......
num pad 6
num pad 5
...释放Alt键

检查返回的字节可能会很棘手。 但如果它只是"OK"的文本或"错误",没问题。
Telnet is probably the simplest thing you could use.

telnet to 192.168.10.220 port 12345 and start typing in the bytes.

Use ALT+{byte value} on the numeric keypad.

For example, to send a byte 65 (which is a capital A in ASCII), Alt+NumPad6 Alt+NumPad5  make sure you hold the ALT key down between digits and just release it once at the end.

like this:
Press and hold Alt key...
num pad 6
num pad 5
...Release Alt key

examining the returned bytes may be tricky.  but if it's just the text of "OK" or "ERROR", no problem.


这篇关于需要帮助在TCP / IP上发送命令来触发服务器!有人可以帮忙吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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