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 OriginatorOrgnator 参数
uint32 iOriginatorPortOrgnatorPort 参数
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* pOpenOen 参数
xsshtcpipopen* pTcpipTc 参数
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 iReplyTokenRelyToken 参数
返回:请求或取消服务端监听 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();