← All docs

stream_socket_shutdown()

Shutdown a full-duplex connection.

stream_socket_shutdown()

function stream_socket_shutdown(resource $stream, int $mode): bool

Shutdown a full-duplex connection.

Parameters:

  • $stream (resource)
  • $mode (int)

Returns: bool

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how stream_socket_shutdown is implemented in the compiler, see the internals page.