- (void)turnSocketDidFail:(TURNSocket *)sender { NSLog(@"TURN Connection failed!"); [turnSockets removeObject:sender]; } - (void)turnSocket:(TURNSocket *)sender didSucceed:(GCDAsyncSocket *)socket { NSLog(@"TURN Connection succeeded!"); NSLog(@"You now have a socket that you can use to send/receive data to/from the other person."); NSData *dataF = [[NSData alloc] initWithContentsOfFile: [[NSBundle mainBundle] pathForResource:@"defaultPerson" ofType:@"png"]]; [socket writeData:dataF withTimeout:60.0f tag:0]; [turnSockets removeObject:sender]; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)