UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SteamEndpoint.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "CoreMinimal.h"
7#include "HAL/Platform.h"
10
15{
16public:
17
20
31
32public:
33
40 bool operator==(const FSteamEndpoint& Other) const
41 {
42 return ((SteamChannel == Other.SteamChannel) && (UniqueNetId == Other.UniqueNetId));
43 }
44
51 bool operator!=(const FSteamEndpoint& Other) const
52 {
53 return ((SteamChannel != Other.SteamChannel) || (UniqueNetId != Other.UniqueNetId));
54 }
55
64 {
65 return Ar << SteamEndpoint.UniqueNetId << SteamEndpoint.SteamChannel;
66 }
67
68public:
69
77 {
78 return SteamChannel;
79 }
80
88 {
89 return UniqueNetId;
90 }
91
92
98 NETWORKING_API FString ToString() const;
99
100public:
101
109 friend uint32 GetTypeHash(const FSteamEndpoint& Address)
110 {
111 return GetTypeHash(Address.UniqueNetId) + GetTypeHash(Address.SteamChannel) * 23;
112 }
113
114private:
115
117 int32 SteamChannel;
118
120 uint64 UniqueNetId;
121};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Archive.h:1208
Definition SteamEndpoint.h:15
bool operator==(const FSteamEndpoint &Other) const
Definition SteamEndpoint.h:40
NETWORKING_API FString ToString() const
Definition SteamEndpoint.cpp:9
friend uint32 GetTypeHash(const FSteamEndpoint &Address)
Definition SteamEndpoint.h:109
friend FArchive & operator<<(FArchive &Ar, FSteamEndpoint &SteamEndpoint)
Definition SteamEndpoint.h:63
FSteamEndpoint()
Definition SteamEndpoint.h:19
bool operator!=(const FSteamEndpoint &Other) const
Definition SteamEndpoint.h:51
uint64 GetUniqueNetId() const
Definition SteamEndpoint.h:87
int32 GetSteamChannel() const
Definition SteamEndpoint.h:76
FSteamEndpoint(uint64 InUniqueNetId, int32 InSteamChannel)
Definition SteamEndpoint.h:27