Module donet_core::datagram

source ·
Expand description

This module provides datagram::Datagram and iterator::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 structure to write network packets (datagrams).
  • Provides structure for iterating over network packets (datagrams).