Funzione Networking_IsNetworkingReadyNetworking_IsNetworkingReady Function
Intestazione: #include <applibs/networking.h>Header: #include <applibs/networking.h>
Verifica se l'interfaccia di rete è attiva, connessa a un punto di accesso, dotata di un indirizzo IP e sincronizzata con la data/ora.Verifies whether the network interface is up, connected to an access point, has an IP address, and the time is synced. Non verifica se esiste effettivamente la connettività Internet.It does not check whether there is actual internet connectivity.
int Networking_IsNetworkingReady(bool * outIsNetworkingReady);
ParametriParameters
outIsNetworkingReady
Puntatore a un valore booleano che restituisce il risultato.outIsNetworkingReady
A pointer to a Boolean that returns the result. Questo valore è impostato su true se la rete è pronta, in caso contrario, su false.This value is set to true if networking is ready, otherwise false.
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.
- EFAULT: il parametro
outIsNetworkingReady
specificato è NULL.EFAULT: the providedoutIsNetworkingReady
parameter is NULL.
errno
È possibile specificare anche qualsiasi altro tipo di errore. tali errori non sono deterministici e lo stesso comportamento potrebbe non essere mantenuto tramite gli aggiornamenti del sistema.Any other errno
may also be specified; such errors aren't deterministic and the same behavior might not be retained through system updates.
Valore restituitoReturn value
Restituisce 0 per l'esito positivo,-1 per l'errore, nel qual caso errno
viene impostato sul valore di errore.Returns 0 for success, -1 for failure, in which case errno
is set to the error value.