The sock_state_cb is function pointer which defines in ares_options. Its signature is as follows:
void (*sock_state_cb)(void *data, ares_socket_t socket_fd, i