stream_socket_pair()
function stream_socket_pair(int $domain, int $type, int $protocol): mixed
Creates a pair of connected, indistinguishable socket streams.
Parameters:
$domain(int)$type(int)$protocol(int)
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/stream_socket_pair.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how stream_socket_pair is implemented in the compiler, see the internals page.