You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to join an IPV6 multicast group in an iOS 7.1.1 (iphone) app but fails. The error I get is:
Error Domain=kCFStreamErrorDomainPOSIX Code=-1 "Unable to join IPv6 multicast group" UserInfo=0x15d5b590 {NSLocalizedDescription=Unable to join IPv6 multicast group}
Code (snippit) I'm using is:
const NSString* ipcMulticastAddress = @"FF15::e755";
const NSInteger ipcPort = 9009;
socket = [[AsyncUdpSocket alloc] init] ;
[[self socket] setDelegate:self];
[self connect];
BOOL result = [socket bindToPort:ipcPort error:&err];
result = [socket joinMulticastGroup:(NSString*)ipcMulticastAddress error:&err];
The error occurs at the last line when doing joinMulticastGroup.
The text was updated successfully, but these errors were encountered:
Change line 1138 of AsyncUdpSocket.m from
error = setsockopt(CFSocketGetNative(theSocket6), IPPROTO_IP, IPV6_JOIN_GROUP,
to
error = setsockopt(CFSocketGetNative(theSocket6), IPPROTO_IPV6, IPV6_JOIN_GROUP,
I try to join an IPV6 multicast group in an iOS 7.1.1 (iphone) app but fails. The error I get is:
Error Domain=kCFStreamErrorDomainPOSIX Code=-1 "Unable to join IPv6 multicast group" UserInfo=0x15d5b590 {NSLocalizedDescription=Unable to join IPv6 multicast group}
Code (snippit) I'm using is:
const NSString* ipcMulticastAddress = @"FF15::e755";
const NSInteger ipcPort = 9009;
socket = [[AsyncUdpSocket alloc] init] ;
[[self socket] setDelegate:self];
[self connect];
BOOL result = [socket bindToPort:ipcPort error:&err];
result = [socket joinMulticastGroup:(NSString*)ipcMulticastAddress error:&err];
The error occurs at the last line when doing joinMulticastGroup.
The text was updated successfully, but these errors were encountered: