I want to create a feature in My App that can detect whether my iPad is connected to a wired network adapter, even if the adapter isn't link up. I use getifaddrs method from the Darwin library to get the network interfaces. I notice that when a wired network adapter is connected, an additional network interface named enX appears, but there are other network interfaces also named enX affect my judgment. Is there a way to determine if a wired network adapter has been plugged in or unplugged?
Topic:
App & System Services
SubTopic:
Networking