Codechange: use std::unique_ptr for receiving network packets

This commit is contained in:
Rubidium
2024-02-03 19:03:47 +01:00
committed by rubidium42
parent 4ba62594e5
commit c77a45ed86
9 changed files with 19 additions and 28 deletions

View File

@@ -75,7 +75,7 @@ public:
ServerNetworkGameSocketHandler(SOCKET s);
~ServerNetworkGameSocketHandler();
Packet *ReceivePacket() override;
std::unique_ptr<Packet> ReceivePacket() override;
NetworkRecvStatus CloseConnection(NetworkRecvStatus status) override;
std::string GetClientName() const;