php man page for socket_send

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 socket

SYNOPSIS
int socket_send (resource $socket, string $buf, int $len, int $flags)
DESCRIPTION
The function socket_send(3) sends $len bytes to the socket $socket from $buf.
PARAMETERS
o $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 VALUES
socket_send(3) returns the number of bytes sent, or FALSE on error.
SEE ALSO
socket_sendto(3). PHP Documentation Group SOCKET_SEND(3)
Related Man Pages
socket_accept(3) - php
socket_recv(3) - php
socket_recvfrom(3) - php
socket_set_block(3) - php
stream_socket_recvfrom(3) - php
Similar Topics in the Unix Linux Community
Store file into a buffer to send it through a socket
Write-Write on a socket
Xinetd flags and tcp46 socket usage to telnet / ssh via v4 and v6 addresses
Extract sequences of bytes from binary for differents blocks