| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | #pragma once
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define INIT_PACK_ADDRESS 0x721EA0
 | 
					
						
							|  |  |  |  | //<2F>հ<EFBFBD>
 | 
					
						
							|  |  |  |  | typedef void(__fastcall* init_pack_handler_t)(void* Ecx); | 
					
						
							|  |  |  |  | static init_pack_handler_t Lpfn_Init = nullptr; | 
					
						
							|  |  |  |  | typedef void(__cdecl* pack_handler_t)(int idx, int err, void*, void*); | 
					
						
							|  |  |  |  | typedef void(__cdecl* register_pack_handler_t)(int idx, pack_handler_t handler, int zero); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-11 21:52:14 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | class sock | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  | private: | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | public: | 
					
						
							| 
									
										
										
										
											2022-05-07 14:31:17 +08:00
										 |  |  |  | 	static void Pack_Control(int idx, int code, void* p3, void* p4); | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-06 00:08:26 +08:00
										 |  |  |  | 	static void Pack_Control2(int idx, int code, void* p3, void* p4); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | public: | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 	static void R_Register_Pack(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-10 20:33:31 +08:00
										 |  |  |  | 	static bool Net_Get_Byte(BYTE& v); | 
					
						
							|  |  |  |  | 	static bool Net_Get_Short(short int& v); | 
					
						
							|  |  |  |  | 	static bool Net_Get_Dword(DWORD& v); | 
					
						
							|  |  |  |  | 	static bool Net_Get_Buffer(char* v, int sz); | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | }; | 
					
						
							|  |  |  |  | 
 |