且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将 2 个 udp 客户端分组?

更新时间:2022-06-07 21:27:56

您正在尝试的是消息广播或消息转发器客户端.广播是在网络层实现的(使用广播本地网络广播地址).

What youre trying is a message broadcast or a message-repeater-client. broadcasting is implemented on network layer (using brodcast the local network broadcast adress).

如果您以这种方式实施它,当您有 2 个以上的客户端时,您的网络就会泛滥.向您的网络管理员致以最诚挚的问候.;-)

And if you implementing it that way, you'll flood your network, when you have more than 2 clients. Best regards to your network admin. ;-)