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.

警告

本函數(shù)還未編寫文檔,僅有參數(shù)列表。

參數(shù)

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.

參見