2 .\" Copyright 1998 by the Massachusetts Institute of Technology.
4 .\" Permission to use, copy, modify, and distribute this
5 .\" software and its documentation for any purpose and without
6 .\" fee is hereby granted, provided that the above copyright
7 .\" notice appear in all copies and that both that copyright
8 .\" notice and this permission notice appear in supporting
9 .\" documentation, and that the name of M.I.T. not be used in
10 .\" advertising or publicity pertaining to distribution of the
11 .\" software without specific, written prior permission.
12 .\" M.I.T. makes no representations about the suitability of
13 .\" this software for any purpose. It is provided "as is"
14 .\" without express or implied warranty.
16 .TH ARES_DESTROY 3 "7 December 2004"
18 ares_destroy \- Destroy a resolver channel
23 .B void ares_destroy(ares_channel \fIchannel\fP)
28 function destroys the name service channel identified by
30 freeing all memory and closing all sockets used by the channel.
32 invokes the callbacks for each pending query on the channel, passing a
34 .BR ARES_EDESTRUCTION .
35 These calls give the callbacks a chance to clean up any state which
36 might have been stored in their arguments.
41 Greg Hudson, MIT Information Systems
43 Copyright 1998 by the Massachusetts Institute of Technology.