I am creating a connection using a bonjour netservice between two iphones.
I connect using
CFStreamCreatePairWithSocketToHost(kCFAllocatorDefault,
(CFStringRef)netService.hostName, netService.port, &readStream, &writeStream);
But I can not figure out how I can tell if the resulting connection is over bluetooth or not. Is there a way to determine the IP address... that should do it.
I figure that is important to comply with Apple's Human Interface Guidelines because if the connection is over WiFi I need to update the Network Activity Indicator in the status bar at times, but it looks like it might be misleading if i use that indicator in a bluetooth connection. (The indicator is beside the wifi connection, not the bluetooth one).
Thanks