UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StropheConnection.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"
7
8#if WITH_XMPP_STROPHE
9
10class FStropheStanza;
12class FXmppUserJid;
13
14typedef struct _xmpp_conn_t xmpp_conn_t;
15typedef struct _xmpp_ctx_t xmpp_ctx_t;
16
18{
19 Unknown,
23};
24
26{
27 Connect,
30 Fail
31};
32
34{
35public:
38
39 // Do not allow copies/assigns
42 FStropheConnection& operator=(const FStropheConnection& Other) = delete;
43 FStropheConnection& operator=(FStropheConnection&& Other) = delete;
44
46 int32 GetTimeout() const;
48 int32 GetPingInterval() const;
50 void SetKeepAlive(int32 Timeout, int32 PingInterval);
51
53 FString GetUserId() const;
55 void SetUserId(const FXmppUserJid& NewUserJid);
56 void SetUserId(const FString& NewUserId);
57
59 FString GetPassword() const;
61 void SetPassword(const FString& NewPassword);
62
64 bool Connect(const FString& Domain, uint16 Port, FXmppConnectionStrophe& ConnectionManager);
66 void Disconnect();
67
69 bool SendStanza(const FStropheStanza& Stanza);
70
72 void XmppThreadTick();
73
77
79 xmpp_ctx_t* GetContextPtr() const { return Context.GetContextPtr(); }
80
82 EStropheConnectionState GetConnectionState() const;
83
84protected:
86
90};
91
92#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
uint8_t uint8
Definition binka_ue_file_header.h:8
uint16_t uint16
Definition binka_ue_file_header.h:7
Definition XmppConnection.h:99