VinsWorldcom has asked for the wisdom of the Perl Monks concerning the following question:
UPDATE: Thanks for all the responses / advice. Module is now live on CPAN: Win32::Net::Info.
A while back I needed a Win32 module for getting network interface / adapter information much like IO::Interface or Net::Interface or Net::Libdnet .. but for Windows (obviously). Also, I know of Win32::IPConfig and Win32::IPConfig::Adapter which use the registry, but don't have all the functionality I needed. Finding nothing that suited at the time, I started to write one myself using XS and hitting the GetAdaptersAddresses() API and parsing the IP_ADAPTER_ADDRESSES structure, but alas my XS skills suck and I ended up writing a Perl interface around some 'wmic', 'netsh' and other Windows command line calls. Hey, it worked.
I thought about CPAN upload for a long while (years) and now I probably should, but what to name it? Originally, 'Win32::GetAdapterAddresses' would have been a good name, but I don't do the XS API integration so didn't want to misrepresent the functionality. It's currently called 'Win32::Interface' - which made sense since at the time, IO::Interface was mainly the functionality I was trying to duplicate. But now not so sure. How about ...
Mainly, should it live under IO::, Net:: or Win32::, and then what name under the top level namespace? Suggestions? Maybe a Perlmonks Poll?!?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 Network Adapter module naming
by hippo (Archbishop) on Sep 22, 2017 at 13:47 UTC | |
by VinsWorldcom (Prior) on Sep 22, 2017 at 13:49 UTC | |
|
Re: Win32 Network Adapter module naming
by Discipulus (Canon) on Sep 22, 2017 at 14:00 UTC | |
by VinsWorldcom (Prior) on Sep 22, 2017 at 14:07 UTC | |
|
Re: Win32 Network Adapter module naming
by 1nickt (Canon) on Sep 22, 2017 at 15:06 UTC | |
by VinsWorldcom (Prior) on Sep 22, 2017 at 15:25 UTC |