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! 
<eski...@apple.com<mailto:eski...@apple.com>> 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      (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to