xrtSshChannelSignalValid

校验 RFC channel signal 名称,并拒绝多余的 SIG 前缀。

bool xrtSshChannelSignalValid(xstrview Signal);
参数说明
xstrview Signal信号值
返回:校验 RFC channel signal 名称,并拒绝多余的 SIG 前缀。

示例已编译验证

/* 校验 RFC channel signal 名称,并拒绝多余的 SIG 前缀。 */
result = xrtSshChannelSignalValid(Signal);

xrtSshChannelShellWrite

写入或严格读取无专用字段的 shell request。

xsshcode xrtSshChannelShellWrite( xsshwriter* pWriter, uint32 iRecipient, bool bWantReply );
参数说明
xsshwriter* pWriter写入器
uint32 iRecipient收件人通道号
bool bWantReplybWantRely 参数
返回:写入或严格读取无专用字段的 shell request。

示例已编译验证

/* 写入或严格读取无专用字段的 shell request。 */
result = xrtSshChannelShellWrite(pWriter, iRecipient, bWantReply);

xrtSshChannelShellRead

XRT_API xsshcode xrtSshChannelShellRead( const xsshchannelrequest* pRequest );

;
返回:XRT_API xsshcode xrtSshChannelShellRead( const xsshchannelrequest* pRequest );

示例已编译验证

/* XRT_API xsshcode xrtSshChannelShellRead( const xsshchannelrequest* pRequest ); */
result = xrtSshChannelShellRead();

xrtSshChannelExecWrite

写入或严格读取不限定编码的 exec command。

xsshcode xrtSshChannelExecWrite( xsshwriter* pWriter, uint32 iRecipient, bool bWantReply, xbytesview Command );
参数说明
xsshwriter* pWriter写入器
uint32 iRecipient收件人通道号
bool bWantReplybWantRely 参数
xbytesview Command命令文本
返回:写入或严格读取不限定编码的 exec 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 );

示例已编译验证

/* XRT_API xsshcode xrtSshChannelExecRead( const xsshchannelrequest* pRequest, xbytesview* pCommand ); */
result = xrtSshChannelExecRead();

xrtSshChannelSubsystemWrite

写入或严格读取不限定编码的 subsystem 名称。

xsshcode xrtSshChannelSubsystemWrite( xsshwriter* pWriter, uint32 iRecipient, bool bWantReply, xbytesview Subsystem );
参数说明
xsshwriter* pWriter写入器
uint32 iRecipient收件人通道号
bool bWantReplybWantRely 参数
xbytesview SubsystemSubsystem 参数
返回:写入或严格读取不限定编码的 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 );

示例已编译验证

/* XRT_API xsshcode xrtSshChannelSubsystemRead( const xsshchannelrequest* pRequest, xbytesview* pSubsystem ); */
result = xrtSshChannelSubsystemRead();

xrtSshChannelEnvWrite

写入或严格读取 env 名称和值。

xsshcode xrtSshChannelEnvWrite( xsshwriter* pWriter, uint32 iRecipient, bool bWantReply, xbytesview Name, xbytesview Value );
参数说明
xsshwriter* pWriter写入器
uint32 iRecipient收件人通道号
bool bWantReplybWantRely 参数
xbytesview Name名称(xstrview)
xbytesview Value值
返回:写入或严格读取 env 名称和值。

示例已编译验证

/* 写入或严格读取 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 );

示例已编译验证

/* XRT_API xsshcode xrtSshChannelEnvRead( const xsshchannelrequest* pRequest, xsshchannelenv* pEnv ); */
result = xrtSshChannelEnvRead();

xrtSshChannelXonXoffWrite

写入或严格读取不要求回复的 xon-xoff 通知。

xsshcode xrtSshChannelXonXoffWrite( xsshwriter* pWriter, uint32 iRecipient, bool bClientCanDo );
参数说明
xsshwriter* pWriter写入器
uint32 iRecipient收件人通道号
bool bClientCanDobClentCanDo 参数
返回:写入或严格读取不要求回复的 xon-xoff 通知。

示例已编译验证

/* 写入或严格读取不要求回复的 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 );

示例已编译验证

/* XRT_API xsshcode xrtSshChannelXonXoffRead( const xsshchannelrequest* pRequest, bool* pClientCanDo ); */
result = xrtSshChannelXonXoffRead();

xrtSshChannelWindowChangeWrite

写入或严格读取不要求回复的终端尺寸变更。

xsshcode xrtSshChannelWindowChangeWrite( xsshwriter* pWriter, uint32 iRecipient, uint32 iColumns, uint32 iRows, uint32 iPixelWidth, uint32 iPixelHeight );
参数说明
xsshwriter* pWriter写入器
uint32 iRecipient收件人通道号
uint32 iColumnsColumns 参数
uint32 iRowsRows 参数
uint32 iPixelWidthPxelWdth 参数
uint32 iPixelHeightPxelHeght 参数
返回:写入或严格读取不要求回复的终端尺寸变更。

示例已编译验证

/* 写入或严格读取不要求回复的终端尺寸变更。 */
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 );

示例已编译验证

/* XRT_API xsshcode xrtSshChannelWindowChangeRead( const xsshchannelrequest* pRequest, xsshchannelwindowchange* pChange ); */
result = xrtSshChannelWindowChangeRead();

xrtSshChannelSignalWrite

写入或严格读取不要求回复的信号通知。

xsshcode xrtSshChannelSignalWrite( xsshwriter* pWriter, uint32 iRecipient, xstrview Signal );
参数说明
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 );

示例已编译验证

/* XRT_API xsshcode xrtSshChannelSignalRead( const xsshchannelrequest* pRequest, xstrview* pSignal ); */
result = xrtSshChannelSignalRead();

xrtSshChannelBreakWrite

写入或严格读取 RFC 4335 break request。

xsshcode xrtSshChannelBreakWrite( xsshwriter* pWriter, uint32 iRecipient, bool bWantReply, uint32 iLengthMs );
参数说明
xsshwriter* pWriter写入器
uint32 iRecipient收件人通道号
bool bWantReplybWantRely 参数
uint32 iLengthMsLengthMs 参数
返回:写入或严格读取 RFC 4335 break request。

示例已编译验证

/* 写入或严格读取 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 );

示例已编译验证

/* XRT_API xsshcode xrtSshChannelBreakRead( const xsshchannelrequest* pRequest, uint32* pLengthMs ); */
result = xrtSshChannelBreakRead();

xrtSshChannelExitStatusWrite

写入或严格读取不要求回复的进程退出状态。

xsshcode xrtSshChannelExitStatusWrite( xsshwriter* pWriter, uint32 iRecipient, uint32 iStatus );
参数说明
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 );

示例已编译验证

/* XRT_API xsshcode xrtSshChannelExitStatusRead( const xsshchannelrequest* pRequest, uint32* pStatus ); */
result = xrtSshChannelExitStatusRead();

xrtSshChannelExitSignalWrite

写入或严格读取不要求回复的进程退出信号。

xsshcode xrtSshChannelExitSignalWrite( xsshwriter* pWriter, uint32 iRecipient, xstrview Signal, bool bCoreDumped, xstrview Message, xstrview Language );
参数说明
xsshwriter* pWriter写入器
uint32 iRecipient收件人通道号
xstrview Signal信号值
bool bCoreDumpedbCoreDumed 参数
xstrview Message消息文本
xstrview LanguageLanguage 参数
返回:写入或严格读取不要求回复的进程退出信号。

示例已编译验证

/* 写入或严格读取不要求回复的进程退出信号。 */
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 );

示例已编译验证

/* XRT_API xsshcode xrtSshChannelExitSignalRead( const xsshchannelrequest* pRequest, xsshchannelexitsignal* pSignal ); */
result = xrtSshChannelExitSignalRead();