PHP.nl

socket_addrinfo_lookup

socket_addrinfo_lookup

Get array with contents of getaddrinfo about the given hostname

 **socket_addrinfo_lookup** string $host  $service array $hints

Lookup different ways we can connect to . The returned array contains a set of instances that we can bind to using . host``AddressInfo``socket_addrinfo_bind

hostHostname to search.

serviceThe service to connect to. If service is a numeric string, it designates the port. Otherwise it designates a network service name, which is mapped to a port by the operating system.

hintsHints provide criteria for selecting addresses returned. You may specify the hints as defined by getaddrinfo.

Returns an array of instances that can be used with the family of functions. On failure, false is returned. AddressInfo``socket_addrinfo_*

socket_addrinfo_bind``socket_addrinfo_connect``socket_addrinfo_explain