Re: Waking up AWDL
Re: Waking up AWDL
- Subject: Re: Waking up AWDL
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Fri, 22 Feb 2019 15:43:19 +0000
On 22 Feb 2019, at 15:16, Neil Alexander <email@hidden> wrote:
> I am assuming that there is some low-level syscall/ioctl or similar that
> causes AWDL to "wake up", as I figure that the NetService/Multipeer
> Connectivity APIs have some method for doing this.
That’s correct. However, the special sauce required to make this work was not
part of our public SDKs, at least the last time I checked.
Historically the only way to accept incoming TCP connections over peer-to-peer
Wi-Fi was via `NSNetServiceListenForConnections`. On modern systems you should
also be able to do it via `NWListener`. That’s a step in the right direction —
`NWListener` at least supports UDP — but it doesn’t get you all the way because
Network framework currently does not support multicast.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden