Gen. partnerAlgotech

PHP function stream_socket_shutdown()

Shutdown a full-duplex connection

|
September 11, 2019

Availability in versions: PHP 5.2.1

Shutdown a full-duplex connection

Parameters

Parameter Data type Default value Note
$stream resource not An open stream (opened with stream_socket_client, for example)
$how int not One of the following constants: STREAM_SHUT_RD (disable further receptions), STREAM_SHUT_WR (disable further transmissions) or STREAM_SHUT_RDWR (disable further receptions and transmissions).

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official documentation for stream-socket-shutdown

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.