1ARES_DESTROY(3) Library Functions Manual ARES_DESTROY(3)
2
3
4
6 ares_destroy - Destroy a resolver channel
7
9 #include <ares.h>
10
11 void ares_destroy(ares_channel channel)
12
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
25 ares_init(3), ares_cancel(3)
26
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)