Navigation
API > API/Plugins > API/Plugins/MultiServerReplication
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMultiServerNode
References
| Module | MultiServerReplication |
| Header | /Engine/Plugins/Runtime/MultiServerReplication/Source/MultiServerReplication/Public/MultiServerNode.h |
| Include | #include "MultiServerNode.h" |
Syntax
UCLASS (Config=Engine, Transient, DisplayName="MultiServer Node")
class UMultiServerNode : public UObject
Remarks
The MultiServer node is a system / control scheme for connecting multiple dedicated server processes to each other and allowing them to communicate via online beacons.
The basic usage pattern is to create a UMultiServerNode in project code via UMultiServerNode::Create. For a typical UE game, a good place might be in an AGameSession subclass in the RegisterServer override. The node manages all the connections to other servers, and will attempt to establish them upon creation based on the PeerAddresses in the FMultiServerNodeCreateParams.
The main user-extension point is to subclass AMultiServerBeaconClient. This subclass can implement its own RPCs to send custom messages to other servers connected to the node. The OnMultiServerConnected callback in the FMultiServerNodeCreateParams will be called when a new connection is established, with the instance of the user beacon as an argument. The user code can call its RPCs on the instance.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| UMultiServerNode * | Create
(
const FMultiServerNodeCreateParams& Params |
||
| AMultiServerBeaconClient * | GetBeaconClientForRemotePeer
(
FStringView RemotePeerId |
||
| T * | GetBeaconClientForRemotePeer
(
FStringView RemotePeerId |
||
| AMultiServerBeaconClient * | GetBeaconClientForURL
(
const FString& InURL |
||
| T * | GetBeaconClientForURL
(
const FString& InURL |
||
| FString | |||
| float | |||
| float | |||
| TSubclassOf< AMultiServerBeaconClient > | |||
| void | ParseCommandLineIntoCreateParams
(
FMultiServerNodeCreateParams& InOutParams |
||
| bool | RegisterServer
(
const FMultiServerNodeCreateParams& Params |