1ARES_SET_SOCKET_CONFIGURE_CALLiLbBrAaCrKy(3F)unctioAnRsESM_aSnEuTa_lSOCKET_CONFIGURE_CALLBACK(3)
2
3
4

NAME

6       ares_set_socket_configure_callback  -  Set a socket configuration call‐
7       back
8

SYNOPSIS

10       #include <ares.h>
11
12       typedef int (*ares_sock_config_callback)(ares_socket_t socket_fd,
13                                                int type,
14                                                void *userdata)
15
16       void ares_set_socket_configure_callback(ares_channel channel,
17                                    ares_sock_config_callback callback,
18                                    void *userdata)
19
20       cc file.c -lcares
21

DESCRIPTION

23       This function sets a callback in the given ares  channel  handle.  This
24       callback  function  will  be invoked after the socket has been created,
25       but before it has been connected to the  remote  server,  which  is  an
26       ideal  time  to  configure  various  socket options.  The callback must
27       return ARES_SUCCESS if things are fine,  or  return  -1  to  signal  an
28       error. A returned error will abort the ares operation.
29

SEE ALSO

31       ares_init_options(3),ares_set_socket_callback(3)
32

AVAILABILITY

34       ares_set_socket_configure_callback(3) was added in c-ares 1.11.0
35

AUTHOR

37       Andrew Ayer
38
39
40
41
42                                  6 Feb 20A1R6ES_SET_SOCKET_CONFIGURE_CALLBACK(3)
Impressum