objective c - IPv6 AutoDiscovery in iOS -
i not unable auto discover servers running in ipv6 network. please let me know should right multicast address need placed, servers can discovered. in existing code, able discover ipv4 servers, not ipv6.
i have used ff02::1 multicast address, still didn't work. following code, setsocket returns error , failing.
int status = setsockopt(socket6fd, ipproto_ipv6, ip_add_membership, (const void *)&imreq, sizeof(imreq)); if (status != 0) { err = [self errnoerrorwithreason:@"error in setsockopt() function"]; return_from_block; }
kindly share thoughts
Comments
Post a Comment