xrtSshMessageType
读取 payload 的消息号,不推进任何外部状态。
| 参数 | 说明 |
|---|---|
| xbytesview Payload | 负载 |
| uint8* pMessage | 出:消息 |
示例已编译验证
/* 读取 payload 的消息号,不推进任何外部状态。 */ result = xrtSshMessageType(Payload, pMessage);
xrtSshNewKeysWrite
写入或严格读取无字段 SSH_MSG_NEWKEYS。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
示例已编译验证
/* 写入或严格读取无字段 SSH_MSG_NEWKEYS。 */ result = xrtSshNewKeysWrite(pWriter);
xrtSshNewKeysRead
XRT_API xsshcode xrtSshNewKeysRead(xbytesview Payload);
示例已编译验证
/* XRT_API xsshcode xrtSshNewKeysRead(xbytesview Payload); */ result = xrtSshNewKeysRead();
xrtSshDisconnectWrite
写入或严格读取 SSH_MSG_DISCONNECT。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iReason | 原因文本 |
| xstrview Description | 描述文本 |
| xstrview Language | Language 参数 |
示例已编译验证
/* 写入或严格读取 SSH_MSG_DISCONNECT。 */ result = xrtSshDisconnectWrite(pWriter, iReason, Description, Language);
xrtSshDisconnectRead
XRT_API xsshcode xrtSshDisconnectRead( xbytesview Payload, xsshdisconnect* pMessage );
示例已编译验证
/* XRT_API xsshcode xrtSshDisconnectRead( xbytesview Payload, xsshdisconnect* pMessage ); */ result = xrtSshDisconnectRead();
xrtSshIgnoreWrite
写入或严格读取 SSH_MSG_IGNORE。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| xbytesview Data | 数据内容 |
示例已编译验证
/* 写入或严格读取 SSH_MSG_IGNORE。 */ result = xrtSshIgnoreWrite(pWriter, Data);
xrtSshIgnoreRead
XRT_API xsshcode xrtSshIgnoreRead( xbytesview Payload, xsshignore* pMessage );
示例已编译验证
/* XRT_API xsshcode xrtSshIgnoreRead( xbytesview Payload, xsshignore* pMessage ); */ result = xrtSshIgnoreRead();
xrtSshUnimplementedWrite
写入或严格读取 SSH_MSG_UNIMPLEMENTED 的拒绝序列号。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| uint32 iSequence | 序号 |
示例已编译验证
/* 写入或严格读取 SSH_MSG_UNIMPLEMENTED 的拒绝序列号。 */ result = xrtSshUnimplementedWrite(pWriter, iSequence);
xrtSshUnimplementedRead
XRT_API xsshcode xrtSshUnimplementedRead( xbytesview Payload, uint32* pSequence );
示例已编译验证
/* XRT_API xsshcode xrtSshUnimplementedRead( xbytesview Payload, uint32* pSequence ); */ result = xrtSshUnimplementedRead();
xrtSshDebugWrite
写入或严格读取 SSH_MSG_DEBUG。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| bool bAlwaysDisplay | bAlwaysDslay 参数 |
| xstrview Message | 消息文本 |
| xstrview Language | Language 参数 |
示例已编译验证
/* 写入或严格读取 SSH_MSG_DEBUG。 */ result = xrtSshDebugWrite(pWriter, bAlwaysDisplay, Message, Language);
xrtSshDebugRead
XRT_API xsshcode xrtSshDebugRead( xbytesview Payload, xsshdebug* pMessage );
示例已编译验证
/* XRT_API xsshcode xrtSshDebugRead( xbytesview Payload, xsshdebug* pMessage ); */ result = xrtSshDebugRead();
xrtSshServiceRequestWrite
写入或严格读取 service request/accept。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| xstrview Service | Servce 参数 |
示例已编译验证
/* 写入或严格读取 service request/accept。 */ result = xrtSshServiceRequestWrite(pWriter, Service);
xrtSshServiceRequestRead
XRT_API xsshcode xrtSshServiceRequestRead( xbytesview Payload, xsshservice* pMessage );
示例已编译验证
/* XRT_API xsshcode xrtSshServiceRequestRead( xbytesview Payload, xsshservice* pMessage ); */ result = xrtSshServiceRequestRead();
xrtSshServiceAcceptWrite
XRT_API xsshcode xrtSshServiceAcceptWrite( xsshwriter* pWriter, xstrview Service );
示例已编译验证
/* XRT_API xsshcode xrtSshServiceAcceptWrite( xsshwriter* pWriter, xstrview Service ); */ result = xrtSshServiceAcceptWrite();
xrtSshServiceAcceptRead
XRT_API xsshcode xrtSshServiceAcceptRead( xbytesview Payload, xsshservice* pMessage );
示例已编译验证
/* XRT_API xsshcode xrtSshServiceAcceptRead( xbytesview Payload, xsshservice* pMessage ); */ result = xrtSshServiceAcceptRead();
xrtSshExtInfoWrite
写入、验证并迭代 RFC 8308 SSH_MSG_EXT_INFO。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| const xsshextension* pExtensions | 扩展向量 |
| size_t iCount | 数量 |
示例已编译验证
/* 写入、验证并迭代 RFC 8308 SSH_MSG_EXT_INFO。 */ result = xrtSshExtInfoWrite(pWriter, pExtensions, iCount);
xrtSshExtInfoRead
XRT_API xsshcode xrtSshExtInfoRead( xbytesview Payload, xsshextinfo* pExtInfo );
示例已编译验证
/* XRT_API xsshcode xrtSshExtInfoRead( xbytesview Payload, xsshextinfo* pExtInfo ); */ result = xrtSshExtInfoRead();
xrtSshExtInfoNext
XRT_API bool xrtSshExtInfoNext( xsshextinfo* pExtInfo, xsshextension* pExtension );
示例已编译验证
/* XRT_API bool xrtSshExtInfoNext( xsshextinfo* pExtInfo, xsshextension* pExtension ); */ result = xrtSshExtInfoNext();
xrtSshNewCompressWrite
写入或严格读取 RFC 8308 SSH_MSG_NEWCOMPRESS。
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
示例已编译验证
/* 写入或严格读取 RFC 8308 SSH_MSG_NEWCOMPRESS。 */ result = xrtSshNewCompressWrite(pWriter);
xrtSshNewCompressRead
XRT_API xsshcode xrtSshNewCompressRead(xbytesview Payload);
示例已编译验证
/* XRT_API xsshcode xrtSshNewCompressRead(xbytesview Payload); */ result = xrtSshNewCompressRead();