具有多个以太网接口的UDP广播! [英] UDP Broadcasting with Multiple Ethernet Interfaces!

查看:184
本文介绍了具有多个以太网接口的UDP广播!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多个以太网接口,我需要与所有这些接口一起广播,接口可以连接到不同的网络。请帮助我使用Windows操作系统中的完整C ++代码。

I have multiple Ethernet Interfaces, I need to broadcast with all those interfaces, The interfaces can be connected to different networks. Please help me with the complete C++ code in Windows OS.

推荐答案

您应该为每个NIC创建UDP套接字并绑定到每个适配器。

请在此处查看我的答案:

在多个以太网接口/适配器上进行UDP广播 [ ^ ]
You should create UDP socket for each NIC and bind to every adapter.
See my answer here:
UDP broadcast on multiple ethernet interfaces/adapters[^]


这篇关于具有多个以太网接口的UDP广播!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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