本文介绍了在不使用广播的情况下,一次从UDP服务器向所有客户端发送相同的信息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在不使用广播的情况下,一次从UDP服务器到所有客户端的特定时间间隔后发送相同的信息。

为此,我正在考虑添加尝试在某种文本文件中与服务器通信的每个客户端的信息,然后,当我想向所有连接的客户端发送单个消息时,我会选择保存在文本文件中的IP地址,并仅在这些地址发送数据。这是一种正确的方法吗?

I want to send same information after specific time intervals from UDP server to all clients at a time without using Broadcast.
For this purpose, I am thinking of adding information of each Client which tries to communicate with the Server in some sort of text file, and then, when I want to send a single message to all connected Clients, I''ll pick up IP addresses saved in the text file and will send data at those addresses only. Is this a correct approach?

推荐答案


这篇关于在不使用广播的情况下,一次从UDP服务器向所有客户端发送相同的信息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 01:34
查看更多