For a while now we’ve had a CFSocketStream API (
kCFStreamNetworkServiceType) for setting network quality of service (QoS). In iOS 10 we finally added a BSD Sockets-level equivalent. Check out the
SO_NET_SERVICE_TYPEsocket option and its related values in
<sys/socket.h>. You can also find more info on this in WWDC 2016 Session 714 Networking for the Modern Internet.
There’s an obvious mapping from the former to the latter. In the case of
kCFStreamNetworkServiceTypeCallSignaling, that’s mapped to
NET_SERVICE_TYPE_SIG. And the header comments for
NET_SERVICE_TYPE_SIGexplain its expected QoS parameters.
… should we pair our SIP signaling sockets with a
kCFStreamNetworkServiceTypeCallSignalingproperty on it ?
You definitely should not do that (in fact, you should never do that!). If you’re working at the BSD Sockets level, use
If Yes, what benefits will it give?
See the header comments that I referenced above.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"