UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
XmppPingStrophe.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Containers/Queue.h"
7#include "XmppConnection.h"
8#include "Containers/Queue.h"
9#include "Containers/Ticker.h"
10#include "HAL/ThreadSafeBool.h"
11
13class FStropheStanza;
14
15#if WITH_XMPP_STROPHE
16
18{
19public:
20 FXmppUserJid FromJid;
21 FString PingId;
22
23public:
25 {
26 }
27
29 : FromJid(MoveTemp(InFromJid))
31 {
32 }
33};
34
36 : public FTSTickerObjectBase
37{
38public:
39 // FXmppPingStrophe
41 virtual ~FXmppPingStrophe();
42
43 // FTSTickerObjectBase
44 virtual bool Tick(float DeltaTime) override;
45
47 void OnDisconnect();
48 void OnReconnect();
49
52
54 void ResetPingTimer();
55
57 void ResetPongTimer();
58
59protected:
62
65
67 void SendClientPing();
68
70 void CheckXmppPongTimeout(float DeltaTime);
71
73 void CleanupMessages();
74
75private:
78
81
84
86 bool bWaitingForPong;
87
90
93
96};
97
98#endif
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition Ticker.h:137
Definition ThreadSafeBool.h:17
Definition XmppConnection.h:99
Definition Queue.h:48