array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.ssh2-forward-listen.php', 1 => 'ssh2_forward_listen', ), 'up' => array ( 0 => 'ref.ssh2.php', 1 => 'SSH2 函数', ), 'prev' => array ( 0 => 'function.ssh2-forward-accept.php', 1 => 'ssh2_forward_accept', ), 'next' => array ( 0 => 'function.ssh2-methods-negotiated.php', 1 => 'ssh2_methods_negotiated', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ssh2/functions/ssh2-forward-listen.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ssh2 >= 0.9.0)
ssh2_forward_listen — Bind a port on the remote server and listen for connections
$session
,$port
,$host
= ?,$max_connections
= 16Binds a port on the remote server and listen for connections.
本函数还未编写文档,仅有参数列表。
session
An SSH Session resource, obtained from a call to ssh2_connect().
port
The port of the remote server.
host
max_connections
Returns an SSH2 Listener, 或者在失败时返回 false
.