Compare commits

...

2 Commits

Author SHA1 Message Date
1c5a0638ed Calling packetHandler 2021-11-22 21:30:22 +01:00
69317e51f6 Changed arg to const ref 2021-11-22 21:30:14 +01:00
2 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,7 @@
#include "../DTO/packet.hpp"
void packetHandler(Packet packet){
void packetHandler(const Packet &packet){
}

View File

@ -14,6 +14,7 @@
#include "../helper/find.hpp"
#include "../helper/vector-stats.hpp"
#include <unordered_map>
#include "./packetHandler.hpp"
using namespace std::string_literals;
@ -38,6 +39,8 @@ void textPacketHandler(const std::vector<std::string> textPacket){
parseHeader(packet, textPacket);
parsePayload(packet, textPacket);
packetHandler(packet);
}