1ARES_CANCEL(3) Library Functions Manual ARES_CANCEL(3)
2
3
4
6 ares_cancel - Cancel a resolve
7
9 #include <ares.h>
10
11 void ares_cancel(ares_channel channel)
12
14 The ares_cancel function cancels all lookups/requests made on the the
15 name service channel identified by channel. ares_cancel invokes the
16 callbacks for each pending query on the channel, passing a status of
17 ARES_ECANCELLED. These calls give the callbacks a chance to clean up
18 any state which might have been stored in their arguments.
19
21 ares_init(3) ares_destroy(3)
22
24 This function was added in c-ares 1.2.0
25
26 c-ares 1.6.0 and earlier pass a status of ARES_ETIMEOUT instead of
27 ARES_ECANCELLED.
28
30 Dirk Manske
31
32
33
34 31 March 2004 ARES_CANCEL(3)