ssh2_forward_listen
(PECL ssh2 >= 0.9.0)
ssh2_forward_listen — Bind a port on the remote server and listen for connections
说明
function ssh2_forward_listen(
resource
int
string
int
): resource|false
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.
参见
- ssh2_forward_accept() - Accept a connection created by a listener
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
