ares_cancel.3 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .\"
  2. .\" Copyright 1998 by the Massachusetts Institute of Technology.
  3. .\"
  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.
  15. .\"
  16. .TH ARES_CANCEL 3 "31 March 2004"
  17. .SH NAME
  18. ares_cancel \- Cancel a resolve
  19. .SH SYNOPSIS
  20. .nf
  21. #include <ares.h>
  22. void ares_cancel(ares_channel \fIchannel\fP)
  23. .fi
  24. .SH DESCRIPTION
  25. The \fBares_cancel(3)\fP function cancels all lookups/requests made on the the
  26. name service channel identified by \fIchannel\fP. \fBares_cancel(3)\fP
  27. invokes the callbacks for each pending query on the channel, passing a status
  28. of
  29. .BR ARES_ECANCELLED .
  30. These calls give the callbacks a chance to clean up any state which might have
  31. been stored in their arguments. If such a callback invocation adds a new
  32. request to the channel, that request will \fInot\fP be cancelled by the
  33. current invocation of \fBares_cancel(3)\fP.
  34. .SH SEE ALSO
  35. .BR ares_init (3)
  36. .BR ares_destroy (3)
  37. .SH NOTES
  38. This function was added in c-ares 1.2.0
  39. c-ares 1.6.0 and earlier pass a status of
  40. .BR ARES_ETIMEOUT
  41. instead of
  42. .BR ARES_ECANCELLED .
  43. .SH AUTHOR
  44. Dirk Manske