dk_timeout()

SYNOPSIS
#include <dk.h>
DK_STAT dk_timeout(
	DK *dk,
        int new,
        int *old
);
Sets and/or retrieves the timeout used when waiting for DNS replies.
DESCRIPTION
Called When dk_timeout() can be called at any time after acquiring a transaction handle from either dk_sign() or dk_verify().
ARGUMENTS
ArgumentDescription
dk Message-specific handle, returned by dk_sign() or dk_verify.
new The new timeout to use, in seconds. When first initialized, the handle contains a default of 5 seconds. A value of 0 means "wait forever".
old An optional pointer to an int which will receive the current timeout. If this is not of interest, pass NULL.
NOTES
  • This function only applies when using the asynchronous resolver package. When using the native resolver, no timeout facility is available.
  • This function is a local addition to the formal API specification and is experimental only. It may not appear in other implementations.

Copyright (c) 2004 Sendmail, Inc. and its suppliers. All rights reserved.
By using this file, you agree to the terms and conditions set forth in the LICENSE.