int size;
#endif
- if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (void *) &loop, &size)) {
+ if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (char *) &loop, &size)) {
::perror ("getsockopt(IP_MULTICAST_LOOP)");
} else {
cout << "********* 1. multicast loopback: " << loop << " size was " << size << endl;
// Turn off loopback...
loop = 0;
- if (::setsockopt(sockout, IPPROTO_IP, IP_MULTICAST_LOOP, (void *) &loop, sizeof (loop)) < 0) {
+ if (::setsockopt(sockout, IPPROTO_IP, IP_MULTICAST_LOOP, (char *) &loop, sizeof (loop)) < 0) {
::perror("setsockopt(IP_MULTICAST_LOOP)");
return false;
}
- if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (void *) &loop, &size)) {
+ if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (char *) &loop, &size)) {
::perror ("getsockopt(IP_MULTICAST_LOOP)");
} else {
cout << "********* 2. multicast loopback: " << loop << " size was " << size << endl;