差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
public:it:freerdp [2022/02/11 14:48] – oakfire | public:it:freerdp [2022/03/01 10:27] (当前版本) – [RDP 协议解析] oakfire | ||
---|---|---|---|
行 12: | 行 12: | ||
===== RDP 协议解析 ===== | ===== RDP 协议解析 ===== | ||
* 基于TCP连接,标准没有规定服务端端口,默认端口为**3389** | * 基于TCP连接,标准没有规定服务端端口,默认端口为**3389** | ||
- | * 消息流里的多字节数据统一使用**小头**字节序(little-endian) | + | * 消息流里的多字节数据统一使用**小端**字节序(little-endian) |
==== 消息结构 ==== | ==== 消息结构 ==== | ||
+ | * 节选了几个有代表性的 | ||
=== 静态虚拟通道消息结构 === | === 静态虚拟通道消息结构 === | ||
* tpktHeader (4 字节): | * tpktHeader (4 字节): | ||
行 68: | 行 69: | ||
* bitmapLength (2 字节): | * bitmapLength (2 字节): | ||
* bitmapComprHdr (8 字节): 可选 | * bitmapComprHdr (8 字节): 可选 | ||
- | * bitmapDataStream (可变长度): | + | * bitmapDataStream (可变长度): |
- | right series of pixels. Each pixel is a whole number of bytes. Each row contains a multiple of four | + | |
- | bytes (including up to three bytes of padding, as necessary). Compressed bitmaps not in 32 bpp | + | |
- | format are compressed using Interleaved RLE and encapsulated in an RLE Compressed Bitmap | + | |
- | Stream structure (section 2.2.9.1.1.3.1.2.4), | + | |
- | are compressed using RDP 6.0 Bitmap Compression and stored inside an RDP 6.0 Bitmap | + | |
- | Compressed Stream structure ([MS-RDPEGDI] section 2.2.2.5.1). | + | |
==== RDP连接 ==== | ==== RDP连接 ==== | ||
* RDP连接示意 | * RDP连接示意 |