Networking
Multicast with C and Perl on Linux
by Gradew on Apr.25, 2009, under Development, Networking
Here are sample C and Perl server and clients that send multicast messages and subscribe to MC groups. The interface IP used to send/received multicast data is configurable in the source itself; this is to show that we can use something else than eth0 by default.
Multicast: 225.0.0.2:1100
Client: 10.8.0.1
Server: 10.8.0.19
Note: The C server also send acknowledgement messages upon reception of a packet.
English