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 apd 函数 stops the interpreter and waits on a cr from the socketphp imap 函数 create a mime message based on given envelope and body sectionsphp maxdb 函数 returns the error code from last connect callphp 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 socket 函数 runs the select system call on the given arrays of sockets with a specified timeoutphp ssdeep 函数 create a fuzzy hash from a filephp ssdeep 函数 create a fuzzy hash from a stringphp 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 fsphp svn 函数 returns the length of a file from a given version of the fsphp sdo das xml 函数 to create sdo das xml object for a given schema file
关注编程学问公众号