char* valvula_support_inet_ntoa ( ValvulaCtx ctx,
struct sockaddr_in *  sin 
)

Thread safe implementation for inet_ntoa.

Parameters
ctxThe valvula context where the operation will be performed.
sinSocket information where to get inet_ntoa result.
Returns
A newly allocated string that must be deallocated with axl_free that contains the host information. The function return NULL if it fails.

References valvula_mutex_lock(), and valvula_mutex_unlock().

Referenced by valvula_connection_get_host_ip().