getdns Functions
PHP Manual

php_getdns_context_get_dns_transport

(PECL getdns >= 0.10.0)

php_getdns_context_get_dns_transportGet the identifier that describes the transport protocol being used for DNS lookups.

Description

int php_getdns_context_get_dns_transport ( int $context , int &$value )

This function gets the identifier that describes the transport protocol being used for DNS lookups.

Parameters

context

The previously created DNS context that is to be used with this request.

value

The value of the transport protocol option. Valid options include GETDNS_TRANSPORT_UDP_FIRST_AND_FALL_BACK_TO_TCP, GETDNS_TRANSPORT_UDP_ONLY, GETDNS_TRANSPORT_TCP_ONLY, and GETDNS_TRANSPORT_TCP_ONLY_KEEP_CONNECTIONS_OPEN. Note that this argument is passed by reference and any existing value will be overwritten.

Return Values

This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.


getdns Functions
PHP Manual