इसके माध्यम से साझा किया गया


Networking_IsNetworkingReady Function

Header: #include <applibs/networking.h>

Verifies whether the network interface is up, connected to an access point, has an IP address, and the time is synced. It does not check whether there is actual internet connectivity.

int Networking_IsNetworkingReady(bool * outIsNetworkingReady);

Parameters

  • outIsNetworkingReady A pointer to a Boolean that returns the result. This value is set to true if networking is ready, otherwise false.

Errors

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

  • EFAULT: the provided outIsNetworkingReady parameter is NULL.

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

Return value

Returns 0 for success, -1 for failure, in which case errno is set to the error value.

Concepts and samples