mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Light cleanup of the 'CNetAdr' class
This commit is contained in:
parent
fd5b840ba9
commit
0b9e5f6e68
@ -1,4 +1,8 @@
|
||||
#pragma once
|
||||
#ifndef TIER1_NETADR_H
|
||||
#define TIER1_NETADR_H
|
||||
|
||||
#define NET_IPV4_UNSPEC "0.0.0.0"
|
||||
#define NET_IPV6_UNSPEC "::"
|
||||
|
||||
enum class netadrtype_t
|
||||
{
|
||||
@ -34,9 +38,11 @@ public:
|
||||
private:
|
||||
netadrtype_t type;
|
||||
IN6_ADDR adr;
|
||||
unsigned short port;
|
||||
uint16_t port;
|
||||
bool field_16;
|
||||
bool reliable;
|
||||
};
|
||||
|
||||
typedef class CNetAdr netadr_t;
|
||||
|
||||
#endif // TIER1_NETADR_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user