UDP套接字数据在端口接收并占用不同的端口 [英] UDP socket data receiving in port and take on different port

查看:141
本文介绍了UDP套接字数据在端口接收并占用不同的端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的限制是我可以在一个端口发送udp套接字数据,我的要求是我想在另一个端口接收相同的数据。如果可能的话???

是否有任何设置或脚本对于这个问题?



我尝试了什么:



无解在任何一种情况下都可以找到,请帮忙。

my limitation is i can send udp socket data in one port ,and my requirement is i want to recieve same data in another port.how it possible???
is there any setting or script for this problem?

What I have tried:

No solution is found in any of the case , please help.

推荐答案

这对单个系统没有任何意义。如果你曾经收到数据,你可以使用你想要的数据,这样就不需要在另一个端口上使用另一个监听器了。



如果你参考不同的系统,您必须多次向每个聆听系统发送数据。如果所有接收系统都位于同一本地子网(专用IP范围)中,您还可以广播数据。然后,所有正在侦听同一端口的系统都将获取数据。
That makes no sense on a single system. If you have received data once there, you can do with the data what you want so that there is no need to use another listener on a different port.

If you refer to different systems, you have to send the data multiple times to each listening system. If all receiving systems are located in the same local sub net (private IP range), you can also broadcast the data. Then all systems that are listening on the same port will get the data.


这篇关于UDP套接字数据在端口接收并占用不同的端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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