#539 NetworkInterface enumeration uses deprecated API

Feature_Request
closed
nobody
Net (141)
5
2012-12-12
2012-06-28
No

The list() method for NetworkInterface on _WIN32 uses the GetAdaptersInfo() interface to probe for interfaces unless POCO_HAVE_IPv6 is enabled.

There are two problems with this:

(1) GetAdaptersInfo() was deprecated in XP-SP1;
(2) GetAdaptersAddresses() is not only the API of choice for XP-SP1 and later, it also works equally well with and without IPv6.

Discussion

  • Alex Fabijanic
    Alex Fabijanic
    2012-12-12

    closing

     
  • Alex Fabijanic
    Alex Fabijanic
    2012-12-12

    • status: open --> closed