Lines Matching defs:group
66 cout << "mctest [-r] -M clients -m client number -i interface -g multicast group -s packet size -n number -t inter-packet gap\n";
88 // @param group ///< multicast group
96 int sink(char *interface, struct in_addr *group, int pkt_size, int number,
108 if (group == NULL) {
109 group = &lgroup;
110 if (inet_pton(AF_INET, DEFAULT_GROUP, group) < 1)
134 mreq.imr_multiaddr.s_addr = group->s_addr;
149 local.sin_addr.s_addr = group->s_addr;
291 // @param group ///< multicast group
299 int source(char *interface, struct in_addr *group, int pkt_size,
308 if (group == NULL) {
309 group = &lgroup;
310 if (inet_pton(AF_INET, DEFAULT_GROUP, group) < 1)
322 addr.sin_addr.s_addr = group->s_addr;
335 mreq.imr_multiaddr.s_addr = group->s_addr;
439 // \param -g multicast group address to which to send/recv packets on
454 struct in_addr *group = NULL; ///< the multicast group address
469 group = new (struct in_addr );
470 if (inet_pton(AF_INET, optarg, group) < 1)
471 usage(argv[0] + string(" Error: invalid multicast group") +
516 sink(interface, group, pkt_size, number, clients, client,
521 source(interface, group, pkt_size, number, gap, clients,