Function anj_net_is_ok

Function Documentation

static inline bool anj_net_is_ok(int res)

Check if a network operation succeeded.

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

Parameters:

res – Result code returned by a networking API call.

Returns:

true if res indicates success, false otherwise.