currentIp = [MD5 currentIP];
NSLog(@"currentIp:%@",currentIp);
_udpSocket = [[AsyncUdpSocket alloc]initWithDelegate:self];
NSError* error;
[_udpSocket enableBroadcast:YES error:&error];
[_udpSocket bindToAddress:currentIp port:48899 error:&error];//currentIP:192.168.1.100
NSString* data = @"HF-A11ASSISTHREAD";
[_udpSocket sendData:[data dataUsingEncoding:NSUTF8StringEncoding]
toHost:[self get255IpWithString:currentIp] // host:192.168.1.255
port:48899
withTimeout:-1
tag:0];
[_udpSocket receiveWithTimeout:-1 tag:156];ios version: 9.1
sdk version :9.1
(nslog)
2015-11-05 14:01:10.415 ZZFColorLife[1335:573131] currentIp:192.168.1.100
2015-11-05 14:01:10.415 ZZFColorLife[1335:573131] CFSocketSetAddress listen failure: 102
Could anyone tell me why that problem show up and how to fix it?