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

DESCRIPTION

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

SEE ALSO

29       ares_init_options(3), ares_set_socket_callback(3)
30

AVAILABILITY

32       ares_set_socket_configure_callback(3) was added in c-ares 1.11.0
33

AUTHOR

35       Andrew Ayer
36
37
38
39
40                                  6 Feb 20A1R6ES_SET_SOCKET_CONFIGURE_CALLBACK(3)
Impressum