stream_socket_get_name()
function stream_socket_get_name(resource $socket, bool $remote): mixed
Retrieve the name of the local or remote sockets.
Parameters:
$socket(resource)$remote(bool)
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_get_name.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how stream_socket_get_name is implemented in the compiler, see the internals page.