ajouts dans netprot
This commit is contained in:
		| @@ -19,6 +19,11 @@ namespace netprot { | ||||
| 				LAST_PACK | ||||
| 			}; | ||||
|  | ||||
| 	struct Packet { | ||||
| 		void* ptr; | ||||
| 		PACKET_TYPE type; | ||||
| 	}; | ||||
|  | ||||
| 	struct Keys { | ||||
| 		bool forward,  | ||||
| 			 backward,  | ||||
| @@ -117,6 +122,8 @@ namespace netprot { | ||||
|  | ||||
| 	PacketType getType(char* buf, uint32_t buflen); // srv/cli | ||||
|  | ||||
| 	Packet getPack(char* buf, uint32_t buflen); | ||||
|  | ||||
| 	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