RDR-Classes/network/InFrame.hpp

40 lines
1.0 KiB
C++
Raw Permalink Normal View History

#pragma once
#include <cstdint>
2024-07-14 02:56:19 +08:00
#include "netPeerAddress.hpp"
namespace rage
{
2024-07-14 02:56:19 +08:00
class netConnection
{
public:
#pragma pack(push, 8)
2024-07-14 02:56:19 +08:00
class InFrame
{
public:
enum class EventType
{
ConnectionClosed = 4,
FrameReceived = 5,
BandwidthExceeded = 6,
OutOfMemory = 7
};
2024-07-14 02:56:19 +08:00
virtual ~InFrame() = default;
2024-07-14 02:56:19 +08:00
virtual void Destroy() = 0;
virtual EventType GetEventType() = 0;
virtual uint32_t _0x18() = 0;
2024-07-14 02:56:19 +08:00
char pad_0[0x38]; // 0x8
InFrame* m_This; // 0x40
int m_MsgId; // 0x48
char m_Unk; // 0x4C
int m_ConnectionId; // 0x50
netPeerAddress m_Address; // 0x58
uint32_t m_Length; // 0x78
void* m_Data; // 0x80
};
static_assert(sizeof(InFrame) == 0x88);
};
#pragma pack(pop)
}