PHP » GoLang |
login |
register |
about
|
GoLang stream_socket_pair
request it (361)
GoLang replacement for PHP's stream_socket_pair
[edit | history]
stream_socket_pair(PHP 5 >= 5.1.0, PHP 7) stream_socket_pair — Creates a pair of connected, indistinguishable socket streams Description
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
Return Values
Returns an array with the two socket resources on success, or
Changelog
Examples
Example #1 A stream_socket_pair() example This example shows the basic usage of stream_socket_pair() in Inter-Process Comunication.
<?php The above example will output something similar to: child PID: 1378 message from child |
more
Recently updated
more
Most requested
more
Last requests
|