PHP funkce stream_socket_server()
06. 07. 2020Dostupnost ve verzích: PHP 5.0
Create an Internet or Unix domain server socket
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$local_socket | string | The type of socket created is determined by the transport specified using standard URL formatting: transport://target. | |
$errno | int | null, | If the optional errno and errstr arguments are present they will be set to indicate the actual system level error that occurred in the system-level socket(), bind(), and listen() calls. If the value returned in errno is 0 and the function returned false, it is an indication that the error occurred before the bind() call. This is most likely due to a problem initializing the socket. Note that the errno and errstr arguments will always be passed by reference. |
$errstr | string | null, | See errno description. |
$flags | int | null, | A bitmask field which may be set to any combination of socket creation flags. |
$context | resource | null |
Návratové hodnoty
resource
the created stream, or false on error.
Další zdroje
https://php.net/manual/en/function.stream-socket-server.php
Jan Barášek Více o autorovi
Autor článku podniká jako fullstack senior developer v Praze. Spravuje 300 různě velkých webových projektů, fungujících dodnes. Během spolupráce nabral hluboké zkušenosti, které na tomto webu předává dál.
Rád vám pomůžu:
Kontakt Konzultace a služby Nabídka spolupráce