(PECL getdns >= 0.10.0)
php_getdns_context_get_timeout — Get the timeout value for DNS queries.
$context
, string &$value
)This function can be used to get the current value for the number of milliseconds that the getdns library will wait for requests to return.
context
The previously created DNS context that is to be used with this request.
value
The number of milliseconds that the getdns library will wait for requests to return. The default is not specified. The value returned will be a 16-character hexadecimal string representing the timeout value. Note that this argument is passed by reference and any existing value will be overwritten.
The getdns library uses an unsigned 64-bit integer to represent the timeout value. PHP does not have native support for unsigned 64-bit integers, so a character string representation of the value is used to pass the value between PHP user space and getdns. String values are padded with leading zero (0) characters.
This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.