There are a lot of places in the code were a unique_ptr would be totally enough and even better to expresss ownership transfer.
Fore example Client and Server classes take shared_ptr to a packet to send it, a unique_ptr would express better the fact that now the packet is only accessible by the server and client and would avoid potential race conditions.
There are a lot of places in the code were a unique_ptr would be totally enough and even better to expresss ownership transfer.
Fore example Client and Server classes take shared_ptr to a packet to send it, a unique_ptr would express better the fact that now the packet is only accessible by the server and client and would avoid potential race conditions.