c-ares call a callback on socket state changes. A better way than the ares_getsock() to get full control over the socket state.