Module libdonet::datagram

source ·
Expand description

This module provides datagram::Datagram and datagram::DatagramIterator.

Solutions provided by this module:

  • Constructing datagrams with appropriate headers and payloads.
  • Iterating through and extracting information from received datagrams.
  • Converting endianness of datagram bytes to native byte order.
  • Datagram-level error handling.

Modules§

  • Utils for swapping little-endian bytes to the compiling processor’s native endianness (byte order).
  • Provides structures to write network datagrams and tools for iterating over datagram data.