Gen. partnerAlgotech

PHP function stream_socket_accept()

|bool Returns a stream to the accepted socket connection or FALSE on failure.

|
September 11, 2019

Availability in PHP 5.0

Accept a connection on a socket created by stream_socket_server

Parameters

Parameter Data type Default value Note
$server_socket resource not Override the default socket accept timeout. Time should be given in seconds.
$timeout float null, Override the default socket accept timeout. Time should be given in seconds.
$peername string null Will be set to the name (address) of the client which connected, if included and available from the selected transport.

Return values

resource

|bool Returns a stream to the accepted socket connection or FALSE on failure.

Other resources

Official documentation for stream-socket-accept

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.