iOS Microchip Ethernet Discoverer(iOS Microchip 以太网发现器)
问题描述
我可以使用套接字发送/接收 本教程
I can send/receive with socket as this tutorial
现在,我想在插入启用 DCHP 的网络时使用 UDP 来发现嵌入式设备的 IP 地址.借助基于 GUI 的 iOS 应用程序广播 UDP 发现请求,嵌入式设备可以接收请求并回复 iOS 应用程序,宣布它们在网络上的存在和 IP 地址.
Now, i want to use UDP to discover an embedded device’s IP address when plugged into a DCHP enabled network. With a GUI based iOS app broadcasting a UDP discovery request, embedded devices can receive the request and reply to the iOS app, announcing their presence and IP address on the network.
我的应用将监听 PORT 30303
的发现请求.
My app will listen to the PORT 30303
for a discovery request.
这是PC应用的开源:
我如何使用 iOS 和 Objective C 来做到这一点?
How can i do it with iOS and Objective C?
谢谢
推荐答案
您可以从这里开始进行设备发现
You can start from here for device discovery
https://github.com/cybergarage/CyberLink4C
这篇关于iOS Microchip 以太网发现器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!