Skip to content

Conversation

@glamberson
Copy link
Contributor

Adds ZGFX segment wrapping utilities for encoding data in RDP8 format.

Summary

  • wrap_uncompressed(): Wraps raw data in ZGFX segment structure without compression
  • wrap_compressed(): Wraps pre-compressed data with the COMPRESSED flag set

Supports both single segments (up to 65535 bytes) and multipart segments for larger payloads per MS-RDPEGFX section 2.2.5.3.

Use Case

Enables server implementations to send EGFX PDUs in spec-compliant ZGFX format. This is the wrapping layer; compression support will follow in a separate PR.

Refs: #1067

Add wrapper.rs providing ZGFX segment framing utilities for both
uncompressed and compressed data:

- wrap_uncompressed(): Wraps raw data in ZGFX segment format
- wrap_compressed(): Wraps ZGFX-compressed data with COMPRESSED flag

Supports both single segments (≤65535 bytes) and multipart segments
for larger data. Fully compliant with MS-RDPEGFX specification.

This enables server implementations to send EGFX PDUs without
compression while maintaining protocol compliance.

Refs: Devolutions#1067
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant