Function anj_net_is_inprogress
Defined in File anj_net_api.h
Function Documentation
-
static inline bool anj_net_is_inprogress(int res)
Check if a network operation is in progress.
Convenience function that tests whether the result code of a network operation equals
ANJ_NET_EINPROGRESS.This indicates thst the operation requires a repeated call, without any other anj_net_* calls being performed in between.
- Parameters:
res – Result code returned by a networking API call.
- Returns:
trueifresindicates a retryable condition,falseotherwise.