How to use GCDAsyncUdpSocket for multicast over wifi and bluetooth

我只是一个虾纸丫 提交于 2019-11-30 10:32:30

I think you are missing the BT stack access which enables BT over ip protocol. Also, multicast relies on a network device (router) to manage these groups and registrations. BT requires a concept of ZeroConf networks (which can also work for wifi), but is managed in a peer to peer manner. Have a look at Bonjour or Dnssd for an implementation closer to the socket level than GameKit.

rweichler

You are very close. You can find pointers to useful information in this StackOverflow question or you can use a library such as HHServices that wraps this functionality.

I honestly have tried this route with little luck, but I hope this points you in the right direction. Let me know if you've figured it out!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!