stream_socket_recvfrom

(PHP 5, PHP 7) Receives data from a socket, connected or not string stream_socket_recvfrom ( resource $socket, int $length [, int $flags = 0 [, string &$address ]] ) stream_socket_recvfrom() accepts data from a remote socket up to length bytes. Parameters: socket The remote socket. length The number of bytes to receive from the so

stream_socket_pair

(PHP 5 >= 5.1.0, PHP 7) Creates a pair of connected, indistinguishable socket streams array stream_socket_pair ( int $domain, int $type, int $protocol ) stream_socket_pair() creates a pair of connected, indistinguishable socket streams. This function is commonly used in IPC (Inter-Process Communication). Parameters: domain The protocol family to be used: STREAM_PF_IN

stream_socket_get_name

(PHP 5, PHP 7) Retrieve the name of the local or remote sockets string stream_socket_get_name ( resource $handle, bool $want_peer ) Returns the local or remote name of a given socket connection. Parameters: handle The socket to get the name of. want_peer If set to TRUE the remote socket name will be returned, if set to FALSE the local s

stream_socket_enable_crypto

(PHP 5 >= 5.1.0, PHP 7) Turns encryption on/off on an already connected socket mixed stream_socket_enable_crypto ( resource $stream, bool $enable [, int $crypto_type [, resource $session_stream ]] ) Enable or disable encryption on the stream. Once the crypto settings are established, cryptography can be turned on and off dynamically by passing TRUE or FALSE in the enable parameter. Parameters:

stream_socket_client

(PHP 5, PHP 7) Open Internet or Unix domain socket connection resource stream_socket_client ( string $remote_socket [, int &$errno [, string &$errstr [, float $timeout = ini_get("default_socket_timeout") [, int $flags = STREAM_CLIENT_CONNECT [, resource $context ]]]]] ) Initiates a stream or datagram connection to the destination specified by remote_socket. The type of socket created is determined by the transport

stream_socket_accept

(PHP 5, PHP 7) Accept a connection on a socket created by stream_socket_server() resource stream_socket_accept ( resource $server_socket [, float $timeout = ini_get("default_socket_timeout") [, string &$peername ]] ) Accept a connection on a socket previously created by stream_socket_server(). Parameters: server_socket The server socket to accept a connection from.

stream_set_write_buffer

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Sets write file buffering on the given stream int stream_set_write_buffer ( resource $stream, int $buffer ) Sets the buffering for write operations on the given stream to buffer bytes. Output using fwrite() is normally buffered at 8K. This means that if there are two processes wanting to write to the same output stream (a file), each is paused after 8K of data to allow the other to write.

stream_set_timeout

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Set timeout period on a stream bool stream_set_timeout ( resource $stream, int $seconds [, int $microseconds = 0 ] ) Sets the timeout value on stream, expressed in the sum of seconds and microseconds. When the stream times out, the 'timed_out' key of the array returned by stream_get_meta_data() is set to TRUE, although no error/warning is generated. Parameters:

stream_set_read_buffer

(PHP 5 >= 5.3.3, PHP 7) Set read file buffering on the given stream int stream_set_read_buffer ( resource $stream, int $buffer ) Sets the read buffer. It's the equivalent of stream_set_write_buffer(), but for read operations. Parameters: stream The file pointer. buffer The number of bytes to buffer. If buffer is 0 then read operation

stream_set_chunk_size

(PHP 5 >= 5.4.0, PHP 7) Set the stream chunk size int stream_set_chunk_size ( resource $fp, int $chunk_size ) Set the stream chunk size. Parameters: fp The target stream. chunk_size The desired new chunk size. Returns: Returns the previous chunk size on success. Will return FALSE if chunk_size is less than