stream_socket_pair

Example

 array stream_socket_pair ( int $domain , int $type , int $protocol ) 

Description

stream_socket_pair() creates a pair of connected, indistinguishable socket streams. This function is commonly used in IPC (Inter-Process Communication).

Return Values

Returns an array with the two socket resources on success, or FALSE on failure.