芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/vendor/azjezz/psl/src/Psl/TCP/Server.php
$port * * @throws Psl\Network\Exception\RuntimeException In case failed to listen to on given address. */ public static function create( string $host, int $port = 0, ?ServerOptions $options = null, ): self { $server_options = $options ?? ServerOptions::create(); $socket_options = $server_options->socketOptions; $socket_context = [ 'socket' => [ 'ipv6_v6only' => true, 'so_reuseaddr' => OS\is_windows() ? $socket_options->portReuse : $socket_options->addressReuse, 'so_reuseport' => $socket_options->portReuse, 'so_broadcast' => $socket_options->broadcast, 'tcp_nodelay' => $server_options->noDelay, ] ]; $socket = Network\Internal\server_listen("tcp://{$host}:{$port}", $socket_context); return new self($socket, $server_options->idleConnections); } }