DNF_DLL/test/sock.h

34 lines
638 B
C++

#pragma once
#define INIT_PACK_ADDRESS 0x721EA0
//ÊÕ°ü
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);
class sock
{
private:
public:
static void Pack_130_³é½±(int idx, int code, void* p3, void* p4);
public:
static void R_Register_Pack();
static bool net_get8(std::int8_t& v);
static bool net_get16(std::int16_t& v);
static bool net_get32(std::int32_t& v);
static bool net_getS(char* v, int sz);
};