stream_socket_pair

 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).

戻り値

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