array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.ssh2-forward-listen.php', 1 => 'ssh2_forward_listen', 2 => 'Bind a port on the remote server and listen for connections', ), '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', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

ssh2_forward_listen

(PECL ssh2 >= 0.9.0)

ssh2_forward_listenBind a port on the remote server and listen for connections

Опис

ssh2_forward_listen(
    resource $session,
    int $port,
    string $host = ?,
    int $max_connections = 16
): resource|false

Binds 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 в разі помилки.

Прогляньте також