1ARES_DESTROY(3)            Library Functions Manual            ARES_DESTROY(3)
2
3
4

NAME

6       ares_destroy - Destroy a resolver channel
7

SYNOPSIS

9       #include <ares.h>
10
11       void ares_destroy(ares_channel channel)
12

DESCRIPTION

14       The  ares_destroy(3) function destroys the name service channel identiā€
15       fied by channel, freeing all memory and closing all sockets used by the
16       channel.
17
18       ares_destroy(3)  invokes  the  callbacks  for each pending query on the
19       channel, passing a status of ARES_EDESTRUCTION. These  calls  give  the
20       callbacks  a  chance to clean up any state which might have been stored
21       in their arguments. A callback must not add new requests to  a  channel
22       being destroyed.
23

SEE ALSO

25       ares_init(3), ares_cancel(3)
26

AUTHOR

28       Greg Hudson, MIT Information Systems
29       Copyright 1998 by the Massachusetts Institute of Technology.
30
31
32
33                                7 December 2004                ARES_DESTROY(3)
Impressum