Function anj_net_is_again

Function Documentation

static inline bool anj_net_is_again(int res)

Check if data was received.

Convenience function that tests whether the result code of a network operation equals ANJ_NET_EAGAIN.

Parameters:

res – Result code returned by a networking API call.

Returns:

true if res equals ANJ_NET_EAGAIN, false otherwise.