The way that programs at the user's level can control the lower-level services available on a platform will vary GREATLY between different platforms.
On some platforms, every card is different, they have different command-line tools or names you must provide, and just enumerating the available network services is not trivial.
Deciding what interfaces are implemented with wifi and what is wired and what is going through a bluetooth or firewire bridge might even trip you up.
Due to the real nature of TCP/IP, there's no way to detect if a network interface is aimed at "the Internet" or not, until you're connected and you decide that contacting a known machine is sufficient proof for yourself.
-- [ e d @ h a l l e y . c c ]
|