Post

Replies

Boosts

Views

Activity

Comment on Is there a way to detect a USB Ethernet Adapter even if no IP has been given, Once it connect to an iPhone/iPad
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?
1w