Implementation of a Web server / client using Rust.
- Http query parser ( Server )
- Screen sharing ( Server / Client )
A simple HTTP query parser allowing the server to retrieve :
- The Http request start line
- The Http request headers
- The Http request optional body
Screen sharing functionality sent through UDP without RTP overhead.
System Overview: Real-time video streaming system using UDP protocol with subscription-based client management and NAL unit processing.
SERVER SIDE
───────────
[Video Source]
│
▼
┌─────────────────────┐
│ Global Buffer │ ◄── Store frames
│ [F1][F2][F3][F4] │
└─────────┬───────────┘
│ Dequeue one element
▼
┌─────────────────────┐
│ UDP Transmitter │ ◄── Send to all clients
│ Broadcasting │
└─────────┬───────────┘
│
▼
UDP Network Layer
═══════════════════════
│
▼
CLIENT SIDE
──────────
┌─────────────────────┐
│ First Buffer │ ◄── Receive unordered
│ [F3][F1][F4][F2] │ packets
└─────────┬───────────┘
│ When threshold reached
▼
┌─────────────────────┐
│ Sorting Process │ ◄── Reorder packets
│ [F1→F2→F3→F4] │
└─────────┬───────────┘
│
▼
┌─────────────────────┐
│ Sorted Buffer │ ◄── Ordered frames
│ [F1][F2][F3][F4] │
└─────────┬───────────┘
│
▼
┌─────────────────────┐
│ Frame Decoder │ ◄── Decode & display
│ & Display │
└─────────────────────┘
│
▼
[Screen Output]
| Component | Technology | Purpose |
|---|---|---|
| Transport | UDP Sockets | Low-latency data transmission |
| Video Codec | H.264/H.265 | Efficient video compression |
| Packetization | NAL Units | Network-friendly video segments |
| Buffering | Multi-stage Buffers | Packet reordering & loss recovery |