Nelaric Unreal Gameplay
Gameplay framework API
Loading...
Searching...
No Matches
NetworkEndpoint.h
Go to the documentation of this file.
1// Copyright (c) 2026 Nelaric
2
6
7#pragma once
8
9#include "CoreTypes.h"
10#include "Containers/UnrealString.h"
11
12namespace Nelaric
13{
20{
22 FString Address;
23
25 int32 Port = 0;
26
30 bool IsValid() const
31 {
32 return !Address.IsEmpty() && Port >= 1 && Port <= 65535;
33 }
34};
35} // namespace Nelaric
Host address and transport port of one network endpoint.
Definition NetworkEndpoint.h:20
bool IsValid() const
Checks whether an address and usable port are present.
Definition NetworkEndpoint.h:30
int32 Port
Transport port from 1 through 65535.
Definition NetworkEndpoint.h:25
FString Address
Host name or IP address without a port.
Definition NetworkEndpoint.h:22