From 0b9e5f6e68f75b51d7339af64a137d67fa77cbbc Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 16 Apr 2023 00:21:17 +0200 Subject: [PATCH] Light cleanup of the 'CNetAdr' class --- r5dev/public/tier1/NetAdr.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/r5dev/public/tier1/NetAdr.h b/r5dev/public/tier1/NetAdr.h index f74b3551..81d5743c 100644 --- a/r5dev/public/tier1/NetAdr.h +++ b/r5dev/public/tier1/NetAdr.h @@ -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