2 #include "EthernetInterface.h"
4 const char* MCAST_GRP = "224.1.1.1";
5 const int MCAST_PORT = 5007;
13 server.bind(MCAST_PORT);
14 if (server.join_multicast_group(MCAST_GRP) != 0) {
15 printf("Error joining the multicast group\n");
22 printf("\nWait for packet...\n");
23 int n = server.receiveFrom(client, buffer, sizeof(buffer));
25 printf("Packet from \"%s\": %s\n", client.get_address(), buffer);