xrtSshClientWaitAsync

在客户端 Worker 上创建 Ready、TCP Drain 或 Close 的单次等待。

xfuture* xrtSshClientWaitAsync( xsshclient* pClient, xsshclientwait Wait );
参数说明
xsshclient* pClient客户端对象
xsshclientwait Wait等待位
返回:在客户端 Worker 上创建 Ready、TCP Drain 或 Close 的单次等待。

示例已编译验证

/* 在客户端 Worker 上创建 Ready、TCP Drain 或 Close 的单次等待。 */
result = xrtSshClientWaitAsync(pClient, Wait);

xrtSshClientChannelWaitAsync

在客户端 Worker 上创建 channel open、可写、EOF 或 close 等待。

xfuture* xrtSshClientChannelWaitAsync( xsshclient* pClient, xsshchannel* pChannel, xsshclientchannelwait Wait );
参数说明
xsshclient* pClient客户端对象
xsshchannel* pChannel通道对象
xsshclientchannelwait Wait等待位
返回:在客户端 Worker 上创建 channel open、可写、EOF 或 close 等待。

示例已编译验证

/* 在客户端 Worker 上创建 channel open、可写、EOF 或 close 等待。 */
result = xrtSshClientChannelWaitAsync(pClient, pChannel, Wait);

xrtSshClientChannelReadAsync

等待指定接收流出现至少一个可读字节;成功不会消费缓冲。

xfuture* xrtSshClientChannelReadAsync( xsshclient* pClient, xsshchannel* pChannel, xsshchanneliostream Stream );
参数说明
xsshclient* pClient客户端对象
xsshchannel* pChannel通道对象
xsshchanneliostream Stream流
返回:等待指定接收流出现至少一个可读字节;成功不会消费缓冲。

示例已编译验证

/* 等待指定接收流出现至少一个可读字节;成功不会消费缓冲。 */
result = xrtSshClientChannelReadAsync(pClient, pChannel, Stream);

xrtSshClientChannelReplyAsync

等待指定 channel 请求 token 的 success/failure 回复。

xfuture* xrtSshClientChannelReplyAsync( xsshclient* pClient, xsshchannel* pChannel, uint64 iReplyToken );
参数说明
xsshclient* pClient客户端对象
xsshchannel* pChannel通道对象
uint64 iReplyTokenRelyToken 参数
返回:等待指定 channel 请求 token 的 success/failure 回复。

示例已编译验证

/* 等待指定 channel 请求 token 的 success/failure 回复。 */
result = xrtSshClientChannelReplyAsync(pClient, pChannel, iReplyToken);

xrtSshClientGlobalReplyAsync

等待指定全局请求 token 的 success/failure 回复。

xfuture* xrtSshClientGlobalReplyAsync( xsshclient* pClient, uint64 iReplyToken );
参数说明
xsshclient* pClient客户端对象
uint64 iReplyTokenRelyToken 参数
返回:等待指定全局请求 token 的 success/failure 回复。

示例已编译验证

/* 等待指定全局请求 token 的 success/failure 回复。 */
result = xrtSshClientGlobalReplyAsync(pClient, iReplyToken);