Network

This is implemented in net

The network and its components.

Here, we have the structs and resources that can be used to communicate over the network:

  • EthernetSocket - A socket that can send and receive packets over the network.
  • NetworkPacket - Stack based packet structure that holds several NetworkHeaders along with payload. The socket can read/write to this struct efficiently, and due to its implementation, it can be used multiple times to send and receive packets.