1ARES_SET_SOCKET_CALLBACK(3)Library Functions ManualARES_SET_SOCKET_CALLBACK(3)
2
3
4
6 ares_set_socket_callback - Set a socket creation callback
7
9 #include <ares.h>
10
11 void ares_set_socket_callback(ares_channel channel,
12 ares_sock_create_callback callback,
13 void *userdata)
14
15 cc file.c -lcares
16
18 This function sets a callback in the given ares channel handle. This
19 callback function will be invoked after the socket has been created,
20 and connected to the remote server. The callback must return ARES_SUC‐
21 CESS if things are fine, or use the standard ares error codes to signal
22 errors back. Returned errors will abort the ares operation.
23
25 ares_init_options(3)
26
28 ares_set_socket_callback(3) was added in c-ares 1.6.0
29
31 Gregor Jasny
32
33
34
35
36 20 Nov 2009 ARES_SET_SOCKET_CALLBACK(3)