Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

datagram

One self-contained message sent on its own, like a postcard.

A datagram is a self-contained message delivered (or lost) as a unit, with no relationship to the datagrams before or after it.

Examples

  • A 17-byte JSON reading sent by UDP becomes a 25-byte datagram: 8 bytes of header plus the payload.

  • The laptop's receive call returns the whole 17-byte reading at once, because each datagram arrives whole or not at all.

Read the full section →