ajout LoginInfo dans le parseur de paquet.
This commit is contained in:
		| @@ -20,7 +20,7 @@ namespace netprot { | ||||
| 			}; | ||||
|  | ||||
| 	struct Packet { | ||||
| 		void* ptr; | ||||
| 		void* ptr = nullptr; | ||||
| 		PACKET_TYPE type; | ||||
| 	}; | ||||
|  | ||||
| @@ -120,9 +120,10 @@ namespace netprot { | ||||
| 	bool Deserialize(Chat* chat, char* buf, const uint32_t buflen); // srv/cli | ||||
| 	bool Deserialize(ErrorLog* errlog, char* buf, const uint32_t buflen); // srv | ||||
|  | ||||
| 	PacketType getType(char* buf, uint32_t buflen); // srv/cli | ||||
| 	PacketType getType(char* buf, uint32_t buflen); | ||||
|  | ||||
| 	Packet getPack(char* buf, uint32_t buflen); | ||||
| 	bool emptyPack(Packet pck); | ||||
|  | ||||
| 	template <class T> void sendPack(SOCKET sock, T* pack, char** buf, uint32_t* buflen); | ||||
| 	template <class T> void sendPackTo(SOCKET sock, T* pack, char** buf, uint32_t* buflen, sockaddr_in* sockad); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user