Query: socket_connect
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SOCKET_CONNECT(3) 1 SOCKET_CONNECT(3) socket_connect - Initiates a connection on a socketSYNOPSISbool socket_connect (resource $socket, string $address, [int $port])DESCRIPTIONInitiate a connection to $address using the socket resource $socket, which must be a valid socket resource created with socket_create(3).PARAMETERSo $socket - o $address - The $address parameter is either an IPv4 address in dotted-quad notation (e.g. 127.0.0.1) if $socket is AF_INET, a valid IPv6 address (e.g. ::1) if IPv6 support is enabled and $socket is AF_INET6 or the pathname of a Unix domain socket, if the socket fam- ily is AF_UNIX. o $port - The $port parameter is only used and is mandatory when connecting to an AF_INET or an AF_INET6 socket, and designates the port on the remote host to which a connection should be made.RETURN VALUESReturns TRUE on success or FALSE on failure. The error code can be retrieved with socket_last_error(3). This code may be passed to socket_strerror(3) to get a textual explanation of the error. Note If the socket is non-blocking then this function returns FALSE with an error Operation now in progress.SEE ALSOsocket_bind(3), socket_listen(3), socket_create(3), socket_last_error(3), socket_strerror(3). PHP Documentation Group SOCKET_CONNECT(3)
Related Man Pages |
---|
socket_write(3) - php |
socket_listen(3) - php |
socket_bind(3) - php |
socket_connect(3) - php |
socket_set_option(3) - php |
Similar Topics in the Unix Linux Community |
---|
socket programming |
Socket Programming - Port Scanner. I Get Connection Timed Out, Why? |
creating socket() |
How to free a port? |
Get process id and port from the socket |