xrtSshClientSessionPty
请求 PTY;Modes 必须是以 TTY_OP_END 结束的已编码 mode 流。
xsshcode xrtSshClientSessionPty( xsshclient* pClient, xsshchannel* pChannel, xbytesview Terminal, uint32 iColumns, uint32 iRows, uint32 iPixelWidth, uint32 iPixelHeight, xbytesview Modes, bool bWantReply, uint64 iReplyToken );
| 参数 | 说明 |
|---|---|
| xsshclient* pClient | 客户端对象 |
| xsshchannel* pChannel | 通道对象 |
| xbytesview Terminal | Termnal 参数 |
| uint32 iColumns | Columns 参数 |
| uint32 iRows | Rows 参数 |
| uint32 iPixelWidth | PxelWdth 参数 |
| uint32 iPixelHeight | PxelHeght 参数 |
| xbytesview Modes | Modes 参数 |
| bool bWantReply | bWantRely 参数 |
| uint64 iReplyToken | RelyToken 参数 |
返回:请求 PTY;Modes 必须是以 TTY_OP_END 结束的已编码 mode 流。
示例已编译验证
/* 请求 PTY;Modes 必须是以 TTY_OP_END 结束的已编码 mode 流。 */ result = xrtSshClientSessionPty(pClient, pChannel, Terminal, iColumns, iRows, iPixelWidth, iPixelHeight, Modes, bWantReply, iReplyToken);
xrtSshClientSessionResize
发送不要求回复的终端窗口尺寸变化。
xsshcode xrtSshClientSessionResize( xsshclient* pClient, xsshchannel* pChannel, uint32 iColumns, uint32 iRows, uint32 iPixelWidth, uint32 iPixelHeight );
| 参数 | 说明 |
|---|---|
| xsshclient* pClient | 客户端对象 |
| xsshchannel* pChannel | 通道对象 |
| uint32 iColumns | Columns 参数 |
| uint32 iRows | Rows 参数 |
| uint32 iPixelWidth | PxelWdth 参数 |
| uint32 iPixelHeight | PxelHeght 参数 |
返回:发送不要求回复的终端窗口尺寸变化。
示例已编译验证
/* 发送不要求回复的终端窗口尺寸变化。 */ result = xrtSshClientSessionResize(pClient, pChannel, iColumns, iRows, iPixelWidth, iPixelHeight);