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 Fields | Felds 参数 |
| bool bWantReply | bWantRely 参数 |
| uint64 iReplyToken | RelyToken 参数 |
返回:发送保留未知扩展字段的 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 bWantReply | bWantRely 参数 |
| uint64 iReplyToken | RelyToken 参数 |
返回:设置一个环境变量;回复 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 bWantReply | bWantRely 参数 |
| uint64 iReplyToken | RelyToken 参数 |
返回:请求交互 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();