socket_addrinfo_lookup() - socket通信函数
socket_addrinfo_lookup()
(PHP 7 >= 7.2.0)
Get array with contents of getaddrinfo about the given hostname
说明
socket_addrinfo_lookup(string $host[,string $service[,array $hints]]): arrayLookup different ways we can connect to$host. The returned array contains a set of resources that we can bind to using socket_addrinfo_bind().
参数
$hostHostname to search.
$serviceThe service to connect to. If service is a name, it is translated to the corresponding port number.
$hintsHints provide criteria for selecting addresses returned. You may specify the hints as defined by getadrinfo.
返回值
Returns an array of AddrInfo resource handles that can be used with the other socket_addrinfo functions.
参见
socket_addrinfo_bind()
Create and bind to a socket from a given addrinfosocket_addrinfo_connect()
Create and connect to a socket from a given addrinfosocket_addrinfo_explain()
Get information about addrinfo
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!