Compare commits
	
		
			2 Commits
		
	
	
		
			4f1cb82f46
			...
			1c5a0638ed
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 1c5a0638ed | |||
| 69317e51f6 | 
@ -3,7 +3,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "../DTO/packet.hpp"
 | 
					#include "../DTO/packet.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void packetHandler(Packet packet){
 | 
					void packetHandler(const Packet &packet){
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -14,6 +14,7 @@
 | 
				
			|||||||
#include "../helper/find.hpp"
 | 
					#include "../helper/find.hpp"
 | 
				
			||||||
#include "../helper/vector-stats.hpp"
 | 
					#include "../helper/vector-stats.hpp"
 | 
				
			||||||
#include <unordered_map>
 | 
					#include <unordered_map>
 | 
				
			||||||
 | 
					#include "./packetHandler.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
using namespace std::string_literals;
 | 
					using namespace std::string_literals;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -38,6 +39,8 @@ void textPacketHandler(const std::vector<std::string> textPacket){
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    parseHeader(packet, textPacket);
 | 
					    parseHeader(packet, textPacket);
 | 
				
			||||||
    parsePayload(packet, textPacket);
 | 
					    parsePayload(packet, textPacket);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    packetHandler(packet);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user