Function anj_net_is_inprogress

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:

true if res indicates a retryable condition, false otherwise.