socket_addrinfo_connect

(PHP 7 >= 7.2.0)

socket_addrinfo_connectCreate and connect to a socket from a given addrinfo

说明

socket_addrinfo_connect ( resource $addr ) : resource

Create a Socket resource, and connect it to the provided AddrInfo resource. The return value of this function may be used with the rest of the socket functions.

参数

addr

Resource created from socket_addrinfo_lookup()()

返回值

Returns a Socket resource on success or NULL on failure.

参见

相关文章
php eventbufferevent connect buffer event s file descriptor to given address or unix socketphp com 函数 connect events from a com object to a php objectphp eio 函数 read from a file descriptor at given offsetphp imap 函数 create a mime message based on given envelope and body sectionsphp maxdb 函数 returns the error code from last connect callphp maxdb 函数 returns the number of warnings from the last query for the given linkphp postgresql 函数 submits a request to create a prepared statement with the given parameters and waits for completionphp socket 函数 create and bind to a socket from a given addrinfophp socket 函数 create and connect to a socket from a given addrinfophp socket 函数 get information about addrinfophp socket 函数 get array with contents of getaddrinfo about the given hostnamephp socket 函数 queries the remote side of the given socket which may either result in host/port or in a unix filesystem path dependent on its typephp socket 函数 queries the local side of the given socket which may either result in host/port or in a unix filesystem path dependent on its typephp socket 函数 reads a maximum of length bytes from a socketphp socket 函数 receives data from a socket whether or not it is connection orientedphp ssdeep 函数 create a fuzzy hash from a filephp ssdeep 函数 create a fuzzy hash from a stringphp stream 函数 receives data from a socket connected or notphp stream 函数 create an internet or unix domain server socketphp svn 函数 returns a stream to access the contents of a file from a given version of the fs
关注编程学问公众号