0

I'm trying to understand what this variable is for. It would appear it needs to be used for iOS builds because you can't access the MAC address on iOS devices?

If it's not defined, line #1349 in NetworkInterface.cpp fails with "file not found" at compile time: #include

Is my assessment correct?

Bungles
  • 1,969
  • 2
  • 25
  • 54

1 Answers1

0

Your assessment is correct. If there is no net/if_types.h header on a platform, some types are not defined. The consequence is that those types will not be detected during the discovery of the interface type and interface will be reported to be of NI_TYPE_OTHER type.

For some reason, although Apple provides the header, it is not available on iPhone devices.

This shortcoming will affect you if you need to know exactly what is the type of the interface; you should be able to discover that from the interface name.

Community
  • 1
  • 1
Alex
  • 5,159
  • 4
  • 25
  • 33
  • Thanks! We do need to know if we're on a wi-fi or cellular connection, but I'm pretty sure that info. is available in other ways if not via Poco. We also need to know the IP address for Geofencing purposes, but Poco probably still provides that. – Bungles May 07 '15 at 20:53