PHP - Manual: ssh2_forward_listen
2024-12-22
(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
.
官方地址:https://www.php.net/manual/en/function.ssh2-forward-listen.php