Files
UnrealEngine/Engine/Plugins/Developer/Concert/ConcertMain/Source/ConcertServer/Public/ConcertServerUtil.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

32 lines
918 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Templates/SharedPointer.h"
#include "Misc/Guid.h"
#include "ConcertMessageData.h"
#include "IConcertSession.h"
class IConcertServer;
namespace ConcertUtil
{
/**
* Get the list of clients for a session
* @param Server The server to look on
* @param SessionId The session ID
* @return A list of clients connected to the session
*/
CONCERTSERVER_API TArray<FConcertSessionClientInfo> GetSessionClients(IConcertServer& Server, const FGuid& SessionId);
/**
* Retrieves the server session object from the given connected client.
* @param Server The server to look on
* @param ClientEndpointId The client's endpoint ID
* @return The session the client is connected to if any
*/
CONCERTSERVER_API TSharedPtr<IConcertServerSession> GetLiveSessionClientConnectedTo(IConcertServer& Server, const FGuid& ClientEndpointId);
}