Thanks Matt for the response.
I check it on my system that On sending a Multicast message (MDNS) using socket (sendto api - https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html), errno=65 “There is no route to the host.” is received.
Please can you confirm if [errno=65] is and will be the error reported in case of local network permission Denied ??
I understand that errno=65 may be reported under some other scenarios as well but need a confirmation that errno=65 is the error at socket level in case of local w/w permission denied.
Moreover, Please can you list down few other scenarios where Apple's sendto api (https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html) gives errno=65.
Post
Replies
Boosts
Views
Activity
To Framework Engineer,
Without having any direct method to inquire if the local network permission is available, it is not possible for us to change the point of triggering local network calls. Let say an App does not want to send local network calls on App launch if local network permission is not available. Rather, initiate the local network calls only when user performs a specific user action such as tap on a button. This will help to provide the context to the user why local network permission is required. If local permission is available, we would prefer to send the local network messages on App launch itself.
Checking if the local permission is possible by sending local network message on App launch (lets say mdns request message) but as soon as the mdns message will be sent, the permission dialog will be prompted to the user. That is the reason, We do not want to send the local network message until permission is available or user performs specific action.
Please let us know if such an API may be exposed in iOS 14 to check the local network permission status.