mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Update netpacket_t struct
This commit is contained in:
parent
d7d9f27f71
commit
9546f7a2ff
@ -33,7 +33,7 @@ bool NET_ReceiveDatagram(int iSocket, netpacket_s* pInpacket, bool bEncrypted)
|
||||
if (result && net_tracePayload->GetBool())
|
||||
{
|
||||
// Log received packet data.
|
||||
HexDump("[+] NET_ReceiveDatagram", "netchan_packet_logger", &pInpacket->data[NULL], pInpacket->wiresize);
|
||||
HexDump("[+] NET_ReceiveDatagram", "netchan_packet_logger", &pInpacket->pData[NULL], pInpacket->wiresize);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
@ -10,4 +10,18 @@ struct INetChannelHandler
|
||||
{
|
||||
void* iNetMessageHandlerVTable /*VFT*/;
|
||||
};
|
||||
|
||||
typedef struct netpacket_s netpacket_t;
|
||||
typedef struct __declspec(align(8)) netpacket_s
|
||||
{
|
||||
v_netadr_t from;
|
||||
int source;
|
||||
double received;
|
||||
uint8_t* pData;
|
||||
bf_read message;
|
||||
int size;
|
||||
int wiresize;
|
||||
char stream;
|
||||
netpacket_s* pNext;
|
||||
} netpacket_t;
|
||||
#endif // !INETCHANNEL_H
|
||||
|
@ -1,29 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
typedef struct netpacket_s netpacket_t;
|
||||
typedef struct __declspec(align(8)) netpacket_s
|
||||
{
|
||||
DWORD family_maybe;
|
||||
sockaddr_in sin;
|
||||
WORD sin_port;
|
||||
char gap16;
|
||||
char byte17;
|
||||
DWORD source;
|
||||
double received;
|
||||
uint8_t* data;
|
||||
uint64_t label;
|
||||
BYTE byte38;
|
||||
uint64_t qword40;
|
||||
uint64_t qword48;
|
||||
BYTE gap50[8];
|
||||
uint64_t qword58;
|
||||
uint64_t qword60;
|
||||
uint64_t qword68;
|
||||
int less_than_12;
|
||||
DWORD wiresize;
|
||||
BYTE gap78[8];
|
||||
struct netpacket_s* pNext;
|
||||
} netpacket_t;
|
||||
#include "tier1/bitbuf.h"
|
||||
|
||||
enum class netadrtype_t
|
||||
{
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
bool IsOverflowed() const;
|
||||
void SetOverflowFlag();
|
||||
private:
|
||||
unsigned __int8* m_pData;
|
||||
uint8_t* m_pData;
|
||||
int m_nDataBytes;
|
||||
int m_nDataBits;
|
||||
int m_iCurBit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user