# Functions
PacketHash returns the hash of a packet.
Serve starts a new peer server using the given transport layer for communication.
# Constants
MaxPacketSize specifies the maximum allowed size of packets.
ResponseTimeout specifies the time limit after which a response must have been received.
# Variables
ErrClosed means that the server was shut down before a response could be received.
ErrInvalidMessage means that no handler could process the received message.
ErrNoMessage is returned when the package did not contain any data.
ErrTimeout is returned when an expected response was not received in time.
# Type aliases
The HandlerFunc type is an adapter to allow the use of ordinary functions as Server handlers.
MType is the type of message type enum.