xrtSshClientDirectTcpipOpen
打开由 SSH 服务端连接目标地址的 direct-tcpip channel。
xsshcode xrtSshClientDirectTcpipOpen( xsshclient* pClient, xbytesview Host, uint32 iPort, xbytesview Originator, uint32 iOriginatorPort, xsshchannel** ppChannel );
| 参数 | 说明 |
|---|---|
| xsshclient* pClient | 客户端对象 |
| xbytesview Host | 主机名 |
| uint32 iPort | 端口号 |
| xbytesview Originator | Orgnator 参数 |
| uint32 iOriginatorPort | OrgnatorPort 参数 |
| xsshchannel** ppChannel | 通道对象 |
返回:打开由 SSH 服务端连接目标地址的 direct-tcpip channel。
示例已编译验证
/* 打开由 SSH 服务端连接目标地址的 direct-tcpip channel。 */ result = xrtSshClientDirectTcpipOpen(pClient, Host, iPort, Originator, iOriginatorPort, ppChannel);
xrtSshClientForwardedTcpipAccept
在 Packet 回调/HOLD 中解析并暂存接受 forwarded-tcpip channel。
xsshcode xrtSshClientForwardedTcpipAccept( xsshclient* pClient, const xsshchannelopen* pOpen, xsshtcpipopen* pTcpip, xsshchannel** ppChannel );
| 参数 | 说明 |
|---|---|
| xsshclient* pClient | 客户端对象 |
| const xsshchannelopen* pOpen | Oen 参数 |
| xsshtcpipopen* pTcpip | Tc 参数 |
| xsshchannel** ppChannel | 通道对象 |
返回:在 Packet 回调/HOLD 中解析并暂存接受 forwarded-tcpip channel。
示例已编译验证
/* 在 Packet 回调/HOLD 中解析并暂存接受 forwarded-tcpip channel。 */ result = xrtSshClientForwardedTcpipAccept(pClient, pOpen, pTcpip, ppChannel);
xrtSshClientTcpipForward
请求或取消服务端监听 remote forwarding 地址。
xsshcode xrtSshClientTcpipForward( xsshclient* pClient, xbytesview Address, uint32 iPort, uint64 iReplyToken );
| 参数 | 说明 |
|---|---|
| xsshclient* pClient | 客户端对象 |
| xbytesview Address | 地址 |
| uint32 iPort | 端口号 |
| uint64 iReplyToken | RelyToken 参数 |
返回:请求或取消服务端监听 remote forwarding 地址。
示例已编译验证
/* 请求或取消服务端监听 remote forwarding 地址。 */ result = xrtSshClientTcpipForward(pClient, Address, iPort, iReplyToken);
xrtSshClientTcpipForwardCancel
XRT_API xsshcode xrtSshClientTcpipForwardCancel( xsshclient* pClient, xbytesview Address, uint32 iPort, uint64 iReplyToken );
;
返回:XRT_API xsshcode xrtSshClientTcpipForwardCancel( xsshclient* pClient, xbytesview Address, uint32 iPort, uint64 iReplyToken );
示例已编译验证
/* XRT_API xsshcode xrtSshClientTcpipForwardCancel( xsshclient* pClient, xbytesview Address, uint32 iPort, uint64 iReplyToken ); */ result = xrtSshClientTcpipForwardCancel();