Funzione Networking_GetInterfaceCountNetworking_GetInterfaceCount Function
Intestazione: #include <applibs/networking.h>Header: #include <applibs/networking.h>
Ottiene il numero di interfacce di rete in un dispositivo Azure Sphere.Gets the number of network interfaces in an Azure Sphere device.
ssize_t Networking_GetInterfaceCount(void);
ErrorsErrors
Restituisce-1 se viene rilevato un errore e imposta sul errno
valore di errore.Returns -1 if an error is encountered and sets errno
to the error value.
- EAGAIN: lo stack di rete non è ancora pronto.EAGAIN: the networking stack isn't ready yet.
errno
È possibile specificare qualsiasi. tali errori non sono deterministici e lo stesso comportamento potrebbe non essere mantenuto tramite gli aggiornamenti del sistema.Any errno
may be specified; such errors aren't deterministic and the same behavior might not be retained through system updates.
Valore restituitoReturn value
Restituisce il numero di interfacce di rete oppure-1 per l'errore, nel qual caso errno
viene impostato sul valore di errore.Returns the number of network interfaces, or -1 for failure, in which case errno
is set to the error value.