array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'swoole-server.protect.php', 1 => 'Swoole\\Server::protect', 2 => 'Set the connection to be protected mode.', ), 'up' => array ( 0 => 'class.swoole-server.php', 1 => 'Swoole\\Server', ), 'prev' => array ( 0 => 'swoole-server.pause.php', 1 => 'Swoole\\Server::pause', ), 'next' => array ( 0 => 'swoole-server.reload.php', 1 => 'Swoole\\Server::reload', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/server/protect.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Swoole\Server::protect

(PECL swoole >= 1.9.0)

Swoole\Server::protectSet the connection to be protected mode.

说明

public Swoole\Server::protect(int $fd, bool $is_protected = ?): void

参数

fd

is_protected

返回值