• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Waking up AWDL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Waking up AWDL


  • Subject: Re: Waking up AWDL
  • From: Neil Alexander <email@hidden>
  • Date: Fri, 22 Feb 2019 15:51:50 +0000
  • Thread-topic: Waking up AWDL

Our main problem here is that we aren't using Swift or Objective-C, so trying
to use NWListener and NetService are out - plus it does sound like they have
other problems too if they don't support multicast or turn into the clunk of
input-output streams like with NetService etc.

The thing is, the actual sockets component of what we're trying to do in Golang
works fine over AWDL, it's just that we can't seem to wake AWDL up
programmatically in the first place. If you open AirDrop in Finder then
suddenly it all jumps into life and our regular sockets with SO_RECV_ANYIF work
fine over awdl0.

If it's just a case of a syscall or ioctl to trigger the driver to wake up then
we could easily call that from Golang. We just would need to know the magic
numbers or the names of the calls to make.

Any chance you could investigate if this is something you can tell us?

Appreciate your fast response!

Rgds,
Neil

On 22 Feb 2019, at 15:43, Quinn The Eskimo!
<email@hidden<mailto:email@hidden>> wrote:

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.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Waking up AWDL
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
    • Re: Waking up AWDL
      • From: Jens Alfke <email@hidden>
References: 
 >Waking up AWDL (From: Neil Alexander <email@hidden>)
 >Re: Waking up AWDL (From: "Quinn \"The Eskimo!\"" <email@hidden>)

  • Prev by Date: Re: Waking up AWDL
  • Next by Date: Re: Waking up AWDL
  • Previous by thread: Re: Waking up AWDL
  • Next by thread: Re: Waking up AWDL
  • Index(es):
    • Date
    • Thread