-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UDP组播支持 #468
Comments
欢迎提PR,可以提到master分支 |
大佬快提pr啊,我也有这个需求 |
我这里名字还没想好,这个名字太长了。
在
然后在主程序文件
|
好的,谢谢大佬 |
我已经添加了UDP组播的加入和离开方法,并进行了测试。 |
interface 为啥有的是 ULONG 有的是 char* ? |
IPV4是描述绑定本机IP的地址,是char*。 |
@ithewei 同样需要组播和广播的功能 希望能尽早加进来 |
在#251 中看到有UDP组播需求,我这里也正好有这个需求。
仿
udp_broadcast()
接口实现了一个。名称参考Qt的joinMulticastGroup()
、leaveMulticastGroup()
接口,但区分IPv4和IPv6两个版本。总共4个接口能否提个PR过来,添加到哪个分支,放在
hsocket.h
中作为HV_INLINE
是合适?请您给个指示。
实现如下
The text was updated successfully, but these errors were encountered: