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
"
6
#include "
XmppStrophe/StropheContext.h
"
7
8
#if WITH_XMPP_STROPHE
9
10
class
FStropheStanza
;
11
class
FXmppConnectionStrophe
;
12
class
FXmppUserJid
;
13
14
typedef
struct
_xmpp_conn_t
xmpp_conn_t
;
15
typedef
struct
_xmpp_ctx_t
xmpp_ctx_t
;
16
17
enum class
EStropheConnectionState
:
uint8
18
{
19
Unknown
,
20
Disconnected
,
21
Connecting
,
22
Connected
23
};
24
25
enum class
EStropheConnectionEvent
:
uint8
26
{
27
Connect
,
28
RawConnect
,
29
Disconnect
,
30
Fail
31
};
32
33
class
FStropheConnection
34
{
35
public
:
36
explicit
FStropheConnection
(
FStropheContext
&
InContext
);
37
~FStropheConnection
();
38
39
// Do not allow copies/assigns
40
FStropheConnection
(
const
FStropheConnection
&
Other
) =
delete
;
41
FStropheConnection
(
FStropheConnection
&&
Other
) =
delete
;
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
75
void
RegisterStropheHandler
(
FXmppConnectionStrophe
&
ConnectionManager
);
76
void
RemoveStropheHandler
();
77
79
xmpp_ctx_t
*
GetContextPtr
()
const
{
return
Context
.GetContextPtr(); }
80
82
EStropheConnectionState
GetConnectionState()
const
;
83
84
protected
:
85
FStropheContext
&
Context
;
86
87
xmpp_conn_t
*
XmppConnectionPtr
;
88
int32
ConnectionTimeoutSeconds
;
89
int32
ConnectionPingIntervalSeconds
;
90
};
91
92
#endif
EARSessionStatus::Other
@ Other
EAnalyticsSessionShutdownType::Unknown
@ Unknown
EAppleControllerEventType::Disconnect
@ Disconnect
EAppleControllerEventType::Connect
@ Connect
EAutomationState::Fail
@ Fail
ETransitionType::Connecting
@ Connecting
CoreMinimal.h
EInputDeviceConnectionState::Disconnected
@ Disconnected
int32
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition
Platform.h:1125
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
ENetworkConnectionStatus::Connected
@ Connected
EBackgroundNSURLCDNInfoResponse::Timeout
@ Timeout
StropheContext.h
EVulkanSyncPointType::Context
@ Context
uint8
uint8_t uint8
Definition
binka_ue_file_header.h:8
uint16
uint16_t uint16
Definition
binka_ue_file_header.h:7
FXmppUserJid
Definition
XmppConnection.h:99
Engine
Source
Runtime
Online
XMPP
Private
XmppStrophe
StropheConnection.h
Generated by
1.9.8