Probably you the socket listen not in the main thread.
Try to warp the delegate call with operatio main queue, as following:
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[self.delegate setClientConnectedWithSocket:sockTCP andIP:[NSString stringWithUTF8String:inet_ntoa(sin.sin_addr)] andHostname:[NSString stringWithUTF8String:data.machineName]];
}];
In addition as check if the delegate respond to @selectore
before calling him.