Network: Use unique_ptr for packets, use deque for packet queues

This commit is contained in:
Jonathan G Rennison
2020-05-06 21:13:31 +01:00
parent caa27cfa39
commit a1d85b812b
9 changed files with 62 additions and 84 deletions

View File

@@ -39,8 +39,6 @@ typedef uint8 PacketType; ///< Identifier for the packet
* (year % 4 == 0) and ((year % 100 != 0) or (year % 400 == 0))
*/
struct Packet {
/** The next packet. Used for queueing packets before sending. */
Packet *next;
/**
* The size of the whole packet for received packets. For packets
* that will be sent, the value is filled in just before the