0

I am implementing an application intends a socket to join more than multicast group? So, Can a socket join more than one multicast group?

4

1 回答 1

0

请参阅此问题及其中提供的答案:Subscribing to multiple multicast groups on one socket (Linux, C)

更长的答案是:是的,您可以使用带有 IP_ADD_MEMBERSHIP 选项的适当 setsockopt() 调用(引用:https ://stackoverflow.com/a/9258030/1284631 )

于 2012-12-13T08:53:30.297 回答