stream_socket_ac­cept

Dostupnost ve verzích: PHP 5.0

Accept a connection on a socket created by <function>stre­am_socket_ser­ver</function>

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$server_socket resource   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.

Návratové hodnoty

resource

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

Další zdroje

http://php.net/…t-accept.php

Sponzorované odkazy
Pomohl Vám tento článek?