Blame ares_cancel.3

Packit 514978
.\"
Packit 514978
.\" Copyright 1998 by the Massachusetts Institute of Technology.
Packit 514978
.\"
Packit 514978
.\" Permission to use, copy, modify, and distribute this
Packit 514978
.\" software and its documentation for any purpose and without
Packit 514978
.\" fee is hereby granted, provided that the above copyright
Packit 514978
.\" notice appear in all copies and that both that copyright
Packit 514978
.\" notice and this permission notice appear in supporting
Packit 514978
.\" documentation, and that the name of M.I.T. not be used in
Packit 514978
.\" advertising or publicity pertaining to distribution of the
Packit 514978
.\" software without specific, written prior permission.
Packit 514978
.\" M.I.T. makes no representations about the suitability of
Packit 514978
.\" this software for any purpose.  It is provided "as is"
Packit 514978
.\" without express or implied warranty.
Packit 514978
.\"
Packit 514978
.TH ARES_CANCEL 3 "31 March 2004"
Packit 514978
.SH NAME
Packit 514978
ares_cancel \- Cancel a resolve
Packit 514978
.SH SYNOPSIS
Packit 514978
.nf
Packit 514978
#include <ares.h>
Packit 514978
Packit 514978
void ares_cancel(ares_channel \fIchannel\fP)
Packit 514978
.fi
Packit 514978
.SH DESCRIPTION
Packit 514978
The \fBares_cancel(3)\fP function cancels all lookups/requests made on the the
Packit 514978
name service channel identified by \fIchannel\fP.  \fBares_cancel(3)\fP
Packit 514978
invokes the callbacks for each pending query on the channel, passing a status
Packit 514978
of
Packit 514978
.BR ARES_ECANCELLED .
Packit 514978
These calls give the callbacks a chance to clean up any state which might have
Packit 514978
been stored in their arguments. If such a callback invocation adds a new
Packit 514978
request to the channel, that request will \fInot\fP be cancelled by the
Packit 514978
current invocation of \fBares_cancel(3)\fP.
Packit 514978
.SH SEE ALSO
Packit 514978
.BR ares_init (3)
Packit 514978
.BR ares_destroy (3)
Packit 514978
.SH NOTES
Packit 514978
This function was added in c-ares 1.2.0
Packit 514978
Packit 514978
c-ares 1.6.0 and earlier pass a status of
Packit 514978
.BR ARES_ETIMEOUT
Packit 514978
instead of
Packit 514978
.BR ARES_ECANCELLED .
Packit 514978
.SH AUTHOR
Packit 514978
Dirk Manske