Query: socket_send
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SOCKET_SEND(3) 1 SOCKET_SEND(3) socket_send - Sends data to a connected socketSYNOPSISint socket_send (resource $socket, string $buf, int $len, int $flags)DESCRIPTIONThe function socket_send(3) sends $len bytes to the socket $socket from $buf.PARAMETERSo $socket - A valid socket resource created with socket_create(3) or socket_accept(3). o $buf - A buffer containing the data that will be sent to the remote host. o $len - The number of bytes that will be sent to the remote host from $buf. o $flags - The value of $flags can be any combination of the following flags, joined with the binary OR ( |) operator. Possible values for $flags +--------------+---------------------------------------------------+ | | | | MSG_OOB | | | | | | | Send OOB (out-of-band) data. | | | | | | | | MSG_EOR | | | | | | | Indicate a record mark. The sent data completes | | | the record. | | | | | | | | MSG_EOF | | | | | | | Close the sender side of the socket and include | | | an appropriate notification of this at the end of | | | the sent data. The sent data completes the trans- | | | action. | | | | | | | |MSG_DONTROUTE | | | | | | | Bypass routing, use direct interface. | | | | +--------------+---------------------------------------------------+RETURN VALUESsocket_send(3) returns the number of bytes sent, or FALSE on error.SEE ALSOsocket_sendto(3). PHP Documentation Group SOCKET_SEND(3)