Quantcast
Viewing all articles
Browse latest Browse all 3049

ARM: ARM:RL-TCPNet in multicast,how to find out which group the data comes from

I am using the RL-TCPNet, the MDK Version is 5.20. And in my application ,I create an UDP server,and join 2 multicast group, 225.0.0.1 and 225.0.0.2. The udp server port is 1001. This is my code: sock = socket (AF_INET, SOCK_DGRAM , IPPROTO_UDP); addr.sin_port = htons(1001); addr.sin_family = AF_INET; //addr.sin_addr.s_addr = INADDR_ANY; addr.sin_addr.s_b1 = 225; addr.sin_addr.s_b2 = 0; addr.sin_addr.s_b3 = 0; addr.sin_addr.s_b4 = 1; bind (sock, (SOCKADDR *)&am

Viewing all articles
Browse latest Browse all 3049

Trending Articles