windows, i love you, more
This commit is contained in:
parent
efca4413b9
commit
62ff9d9276
@ -239,7 +239,7 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname)
|
|||||||
int size;
|
int size;
|
||||||
#endif
|
#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)");
|
::perror ("getsockopt(IP_MULTICAST_LOOP)");
|
||||||
} else {
|
} else {
|
||||||
cout << "********* 1. multicast loopback: " << loop << " size was " << size << endl;
|
cout << "********* 1. multicast loopback: " << loop << " size was " << size << endl;
|
||||||
@ -247,12 +247,12 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname)
|
|||||||
|
|
||||||
// Turn off loopback...
|
// Turn off loopback...
|
||||||
loop = 0;
|
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)");
|
::perror("setsockopt(IP_MULTICAST_LOOP)");
|
||||||
return false;
|
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)");
|
::perror ("getsockopt(IP_MULTICAST_LOOP)");
|
||||||
} else {
|
} else {
|
||||||
cout << "********* 2. multicast loopback: " << loop << " size was " << size << endl;
|
cout << "********* 2. multicast loopback: " << loop << " size was " << size << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user