1ARES_SET_SOCKET_CALLBACK(3)Library Functions ManualARES_SET_SOCKET_CALLBACK(3)
2
3
4

NAME

6       ares_set_socket_callback - Set a socket creation callback
7

SYNOPSIS

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

DESCRIPTION

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

SEE ALSO

25       ares_init_options(3)
26

AVAILABILITY

28       ares_set_socket_callback(3) was added in c-ares 1.6.0
29

AUTHOR

31       Gregor Jasny
32
33
34
35
36                                  20 Nov 2009      ARES_SET_SOCKET_CALLBACK(3)
Impressum