2 .TH ARES_SET_SOCKET_CALLBACK 3 "20 Nov 2009"
4 ares_set_socket_callback \- Set a socket creation callback
9 .B void ares_set_socket_callback(ares_channel \fIchannel\fP,
10 ares_sock_create_callback \fIcallback\fP,
17 This function sets a \fIcallback\fP in the given ares channel handle. This
18 callback function will be invoked after the socket has been created, and
19 connected to the remote server. The callback must return ARES_SUCCESS if
20 things are fine, or use the standard ares error codes to signal errors
21 back. Returned errors will abort the ares operation.
23 .BR ares_init_options (3)
25 ares_set_socket_callback(3) was added in c-ares 1.6.0