Subscribing to multiple multicast groups on one socket (Linux, C)

前端 未结 6 1547
悲哀的现实
悲哀的现实 2020-12-31 15:29

Is it possible to receive data from more than one multicast group on a single socket?

For example:

void AddGroup(int sock,
              const char*          


        
6条回答
  •  无人及你
    2020-12-31 15:57

    You only bind a socket once. Skip the bind the second time and see what happens.

提交回复
热议问题