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 function destroys the name service channel identified
15 by channel, freeing all memory and closing all sockets used by the
16 channel. ares_destroy invokes the callbacks for each pending query on
17 the channel, passing a status of ARES_EDESTRUCTION. These calls give
18 the callbacks a chance to clean up any state which might have been
19 stored in their arguments. A callback must not add new requests to a
20 channel being destroyed.
21
23 ares_init(3), ares_cancel(3)
24
26 Greg Hudson, MIT Information Systems
27 Copyright 1998 by the Massachusetts Institute of Technology.
28
29
30
31 7 December 2004 ARES_DESTROY(3)