This commit is contained in:
Marc-Eric Martel
2023-10-27 12:02:29 -04:00
parent 0dded0bc9b
commit 6a8a505167
3 changed files with 130 additions and 52 deletions

View File

@@ -134,6 +134,8 @@ namespace netprot {
bool emptyPack(Packet pck);
Packet makePack(void* ptr, PACKET_TYPE type); // Pour pouvoir faire une liste de stock à supprimer sans avoir à en faire une pour chaque type.
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);