xrtSshChannelSignalValid
校验 RFC channel signal 名称,并拒绝多余的 SIG 前缀。
| 参数 | 说明 |
|---|---|
| xstrview Signal | 信号值 |
示例已编译验证
/* 校验 RFC channel signal 名称,并拒绝多余的 SIG 前缀。 */ result = xrtSshChannelSignalValid(Signal);
xrtSshChannelShellWrite
写入或严格读取无专用字段的 shell request。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iRecipient | 收件人通道号 |
| bool bWantReply | bWantRely 参数 |
示例已编译验证
/* 写入或严格读取无专用字段的 shell request。 */ result = xrtSshChannelShellWrite(pWriter, iRecipient, bWantReply);
xrtSshChannelShellRead
XRT_API xsshcode xrtSshChannelShellRead( const xsshchannelrequest* pRequest );
示例已编译验证
/* XRT_API xsshcode xrtSshChannelShellRead( const xsshchannelrequest* pRequest ); */ result = xrtSshChannelShellRead();
xrtSshChannelExecWrite
写入或严格读取不限定编码的 exec command。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iRecipient | 收件人通道号 |
| bool bWantReply | bWantRely 参数 |
| xbytesview Command | 命令文本 |
示例已编译验证
/* 写入或严格读取不限定编码的 exec command。 */ result = xrtSshChannelExecWrite(pWriter, iRecipient, bWantReply, Command);
xrtSshChannelExecRead
XRT_API xsshcode xrtSshChannelExecRead( const xsshchannelrequest* pRequest, xbytesview* pCommand );
示例已编译验证
/* XRT_API xsshcode xrtSshChannelExecRead( const xsshchannelrequest* pRequest, xbytesview* pCommand ); */ result = xrtSshChannelExecRead();
xrtSshChannelSubsystemWrite
写入或严格读取不限定编码的 subsystem 名称。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iRecipient | 收件人通道号 |
| bool bWantReply | bWantRely 参数 |
| xbytesview Subsystem | Subsystem 参数 |
示例已编译验证
/* 写入或严格读取不限定编码的 subsystem 名称。 */ result = xrtSshChannelSubsystemWrite(pWriter, iRecipient, bWantReply, Subsystem);
xrtSshChannelSubsystemRead
XRT_API xsshcode xrtSshChannelSubsystemRead( const xsshchannelrequest* pRequest, xbytesview* pSubsystem );
示例已编译验证
/* XRT_API xsshcode xrtSshChannelSubsystemRead( const xsshchannelrequest* pRequest, xbytesview* pSubsystem ); */ result = xrtSshChannelSubsystemRead();
xrtSshChannelEnvWrite
写入或严格读取 env 名称和值。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iRecipient | 收件人通道号 |
| bool bWantReply | bWantRely 参数 |
| xbytesview Name | 名称(xstrview) |
| xbytesview Value | 值 |
示例已编译验证
/* 写入或严格读取 env 名称和值。 */ result = xrtSshChannelEnvWrite(pWriter, iRecipient, bWantReply, Name, Value);
xrtSshChannelEnvRead
XRT_API xsshcode xrtSshChannelEnvRead( const xsshchannelrequest* pRequest, xsshchannelenv* pEnv );
示例已编译验证
/* XRT_API xsshcode xrtSshChannelEnvRead( const xsshchannelrequest* pRequest, xsshchannelenv* pEnv ); */ result = xrtSshChannelEnvRead();
xrtSshChannelXonXoffWrite
写入或严格读取不要求回复的 xon-xoff 通知。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iRecipient | 收件人通道号 |
| bool bClientCanDo | bClentCanDo 参数 |
示例已编译验证
/* 写入或严格读取不要求回复的 xon-xoff 通知。 */ result = xrtSshChannelXonXoffWrite(pWriter, iRecipient, bClientCanDo);
xrtSshChannelXonXoffRead
XRT_API xsshcode xrtSshChannelXonXoffRead( const xsshchannelrequest* pRequest, bool* pClientCanDo );
示例已编译验证
/* XRT_API xsshcode xrtSshChannelXonXoffRead( const xsshchannelrequest* pRequest, bool* pClientCanDo ); */ result = xrtSshChannelXonXoffRead();
xrtSshChannelWindowChangeWrite
写入或严格读取不要求回复的终端尺寸变更。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iRecipient | 收件人通道号 |
| uint32 iColumns | Columns 参数 |
| uint32 iRows | Rows 参数 |
| uint32 iPixelWidth | PxelWdth 参数 |
| uint32 iPixelHeight | PxelHeght 参数 |
示例已编译验证
/* 写入或严格读取不要求回复的终端尺寸变更。 */ result = xrtSshChannelWindowChangeWrite(pWriter, iRecipient, iColumns, iRows, iPixelWidth, iPixelHeight);
xrtSshChannelWindowChangeRead
XRT_API xsshcode xrtSshChannelWindowChangeRead( const xsshchannelrequest* pRequest, xsshchannelwindowchange* pChange );
示例已编译验证
/* XRT_API xsshcode xrtSshChannelWindowChangeRead( const xsshchannelrequest* pRequest, xsshchannelwindowchange* pChange ); */ result = xrtSshChannelWindowChangeRead();
xrtSshChannelSignalWrite
写入或严格读取不要求回复的信号通知。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iRecipient | 收件人通道号 |
| xstrview Signal | 信号值 |
示例已编译验证
/* 写入或严格读取不要求回复的信号通知。 */ result = xrtSshChannelSignalWrite(pWriter, iRecipient, Signal);
xrtSshChannelSignalRead
XRT_API xsshcode xrtSshChannelSignalRead( const xsshchannelrequest* pRequest, xstrview* pSignal );
示例已编译验证
/* XRT_API xsshcode xrtSshChannelSignalRead( const xsshchannelrequest* pRequest, xstrview* pSignal ); */ result = xrtSshChannelSignalRead();
xrtSshChannelBreakWrite
写入或严格读取 RFC 4335 break request。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iRecipient | 收件人通道号 |
| bool bWantReply | bWantRely 参数 |
| uint32 iLengthMs | LengthMs 参数 |
示例已编译验证
/* 写入或严格读取 RFC 4335 break request。 */ result = xrtSshChannelBreakWrite(pWriter, iRecipient, bWantReply, iLengthMs);
xrtSshChannelBreakRead
XRT_API xsshcode xrtSshChannelBreakRead( const xsshchannelrequest* pRequest, uint32* pLengthMs );
示例已编译验证
/* XRT_API xsshcode xrtSshChannelBreakRead( const xsshchannelrequest* pRequest, uint32* pLengthMs ); */ result = xrtSshChannelBreakRead();
xrtSshChannelExitStatusWrite
写入或严格读取不要求回复的进程退出状态。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iRecipient | 收件人通道号 |
| uint32 iStatus | 状态码 |
示例已编译验证
/* 写入或严格读取不要求回复的进程退出状态。 */ result = xrtSshChannelExitStatusWrite(pWriter, iRecipient, iStatus);
xrtSshChannelExitStatusRead
XRT_API xsshcode xrtSshChannelExitStatusRead( const xsshchannelrequest* pRequest, uint32* pStatus );
示例已编译验证
/* XRT_API xsshcode xrtSshChannelExitStatusRead( const xsshchannelrequest* pRequest, uint32* pStatus ); */ result = xrtSshChannelExitStatusRead();
xrtSshChannelExitSignalWrite
写入或严格读取不要求回复的进程退出信号。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iRecipient | 收件人通道号 |
| xstrview Signal | 信号值 |
| bool bCoreDumped | bCoreDumed 参数 |
| xstrview Message | 消息文本 |
| xstrview Language | Language 参数 |
示例已编译验证
/* 写入或严格读取不要求回复的进程退出信号。 */ result = xrtSshChannelExitSignalWrite(pWriter, iRecipient, Signal, bCoreDumped, Message, Language);
xrtSshChannelExitSignalRead
XRT_API xsshcode xrtSshChannelExitSignalRead( const xsshchannelrequest* pRequest, xsshchannelexitsignal* pSignal );
示例已编译验证
/* XRT_API xsshcode xrtSshChannelExitSignalRead( const xsshchannelrequest* pRequest, xsshchannelexitsignal* pSignal ); */ result = xrtSshChannelExitSignalRead();