xrtSshClientSessionOpen

创建等待服务端 confirmation 的 session channel。

xsshcode xrtSshClientSessionOpen( xsshclient* pClient, xsshchannel** ppChannel );
参数说明
xsshclient* pClient客户端对象
xsshchannel** ppChannel通道对象
返回:创建等待服务端 confirmation 的 session channel。

示例已编译验证

/* 创建等待服务端 confirmation 的 session channel。 */
result = xrtSshClientSessionOpen(pClient, ppChannel);

xrtSshClientSessionRequest

发送保留未知扩展字段的 session request。

xsshcode xrtSshClientSessionRequest( xsshclient* pClient, xsshchannel* pChannel, xstrview Type, xbytesview Fields, bool bWantReply, uint64 iReplyToken );
参数说明
xsshclient* pClient客户端对象
xsshchannel* pChannel通道对象
xstrview Type类型
xbytesview FieldsFelds 参数
bool bWantReplybWantRely 参数
uint64 iReplyTokenRelyToken 参数
返回:发送保留未知扩展字段的 session request。

示例已编译验证

/* 发送保留未知扩展字段的 session request。 */
result = xrtSshClientSessionRequest(pClient, pChannel, Type, Fields, bWantReply, iReplyToken);

xrtSshClientSessionEnv

设置一个环境变量;回复 token 按同一 channel 的 FIFO 顺序返回。

xsshcode xrtSshClientSessionEnv( xsshclient* pClient, xsshchannel* pChannel, xbytesview Name, xbytesview Value, bool bWantReply, uint64 iReplyToken );
参数说明
xsshclient* pClient客户端对象
xsshchannel* pChannel通道对象
xbytesview Name名称(xstrview)
xbytesview Value值
bool bWantReplybWantRely 参数
uint64 iReplyTokenRelyToken 参数
返回:设置一个环境变量;回复 token 按同一 channel 的 FIFO 顺序返回。

示例已编译验证

/* 设置一个环境变量;回复 token 按同一 channel 的 FIFO 顺序返回。 */
result = xrtSshClientSessionEnv(pClient, pChannel, Name, Value, bWantReply, iReplyToken);

xrtSshClientSessionShell

请求交互 shell、单条命令或命名 subsystem。

xsshcode xrtSshClientSessionShell( xsshclient* pClient, xsshchannel* pChannel, bool bWantReply, uint64 iReplyToken );
参数说明
xsshclient* pClient客户端对象
xsshchannel* pChannel通道对象
bool bWantReplybWantRely 参数
uint64 iReplyTokenRelyToken 参数
返回:请求交互 shell、单条命令或命名 subsystem。

示例已编译验证

/* 请求交互 shell、单条命令或命名 subsystem。 */
result = xrtSshClientSessionShell(pClient, pChannel, bWantReply, iReplyToken);

xrtSshClientSessionExec

XRT_API xsshcode xrtSshClientSessionExec( xsshclient* pClient, xsshchannel* pChannel, xbytesview Command, bool bWantReply, uint64 iReplyToken );

;
返回:XRT_API xsshcode xrtSshClientSessionExec( xsshclient* pClient, xsshchannel* pChannel, xbytesview Command, bool bWantReply, uint64 iReplyToken );

示例已编译验证

/* XRT_API xsshcode xrtSshClientSessionExec( xsshclient* pClient, xsshchannel* pChannel, xbytesview Command, bool bWantReply, uint64 iReplyToken ); */
result = xrtSshClientSessionExec();

xrtSshClientSessionSubsystem

XRT_API xsshcode xrtSshClientSessionSubsystem( xsshclient* pClient, xsshchannel* pChannel, xbytesview Subsystem, bool bWantReply, uint64 iReplyToken );

;
返回:XRT_API xsshcode xrtSshClientSessionSubsystem( xsshclient* pClient, xsshchannel* pChannel, xbytesview Subsystem, bool bWantReply, uint64 iReplyToken );

示例已编译验证

/* XRT_API xsshcode xrtSshClientSessionSubsystem( xsshclient* pClient, xsshchannel* pChannel, xbytesview Subsystem, bool bWantReply, uint64 iReplyToken ); */
result = xrtSshClientSessionSubsystem();

xrtSshClientSessionSignal

向远端进程发送规范 signal 或 RFC 4335 break。

xsshcode xrtSshClientSessionSignal( xsshclient* pClient, xsshchannel* pChannel, xstrview Signal );
参数说明
xsshclient* pClient客户端对象
xsshchannel* pChannel通道对象
xstrview Signal信号值
返回:向远端进程发送规范 signal 或 RFC 4335 break。

示例已编译验证

/* 向远端进程发送规范 signal 或 RFC 4335 break。 */
result = xrtSshClientSessionSignal(pClient, pChannel, Signal);

xrtSshClientSessionBreak

XRT_API xsshcode xrtSshClientSessionBreak( xsshclient* pClient, xsshchannel* pChannel, uint32 iLengthMs, bool bWantReply, uint64 iReplyToken );

;
返回:XRT_API xsshcode xrtSshClientSessionBreak( xsshclient* pClient, xsshchannel* pChannel, uint32 iLengthMs, bool bWantReply, uint64 iReplyToken );

示例已编译验证

/* XRT_API xsshcode xrtSshClientSessionBreak( xsshclient* pClient, xsshchannel* pChannel, uint32 iLengthMs, bool bWantReply, uint64 iReplyToken ); */
result = xrtSshClientSessionBreak();