Networking_GetInterfaceCount Function

Header: #include <applibs/networking.h>

Gets the number of network interfaces in an Azure Sphere device.

ssize_t Networking_GetInterfaceCount(void);

Errors

Returns -1 if an error is encountered and sets errno to the error value.

  • EAGAIN: the networking stack isn't ready yet.

Any errno may be specified; such errors aren't deterministic and the same behavior might not be retained through system updates.

Return value

Returns the number of network interfaces, or -1 for failure, in which case errno is set to the error value.

Concepts and samples