PHP Manual

PHP function stream_socket_accept()

2019-09-11T08:04:03.000Z

Obsah článku

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

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
119.

V jiných jazycích

Status:
All systems normal.
2025