|
stream_socket_pairCreates a pair of connected, indistinguishable socket streams Beschreibung
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). Parameter-Liste
Rückgabewerte
Returns an array with the two socket resources on success, or
Changelog
Beispiele
Beispiel #1 A stream_socket_pair example This example shows the basic usage of stream_socket_pair in Inter-Process Comunication.
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: child PID: 1378 message from child |