Receiving multiple multicast feeds on the same port - C, Linux

前端 未结 8 1139
予麋鹿
予麋鹿 2020-11-29 04:59

I have an application that is receiving data from multiple multicast sources on the same port. I am able to receive the data. However, I am trying to account for statistics

8条回答
  •  一个人的身影
    2020-11-29 05:35

    Replace

    mc_addr.sin_addr.s_addr = htonl(INADDR_ANY);

    with

    mc_addr.sin_addr.s_addr = inet_addr (mc_addr_str);

    it's help for me (linux), for each application i receive separate mcast stream from separate mcast group on one port.

    Also you can look into VLC player source, it show many mcast iptv channel from different mcast group on one port, but i dont know, how it separetes channel.

提交回复
热议问题