The two most common transport layer protocols are the transmission control protocol (TCP) and the user datagram protocol (UDP). One of the main differences between the two protocols is reliability.
Apply modern C++ to that module. Use constexpr for configuration constants. Replace raw arrays with std::array. Wrap resource ...