SYNOPSIS |
#include <dkim.h>
DKIM_STAT dkim_set_dns_callback(
DKIM_LIB *libopendkim,
void (*func)(const void *context),
unsigned int interval);
);
Define a function which should be called from time to time while waiting
for a DNS response to become available. This is particularly meant for
use when libopendkim is being used by an application which is timeout-sensitive
where a heartbeat ("still alive, operation in progress") message is
desirable.
When defined, the specified function will be called at the specified interval
even if the DNS response has not yet arrived, using the caller-specific
context pointer set by the
dkim_set_user_context()
function (if any) as the parameter to that function.
|