Files
UnrealEngineUWP/Engine/Plugins/Developer/Concert/ConcertMain/Source/ConcertServer/Public/ConcertServerUtil.h
jason walter 52308eb827 Split concert client code from concert server code to allow us to incorporate game tags in the editor client.
#rb dominik.peacock
#jira UE-168182
#preflight 63c6cf3c02024f93d8635de3

[CL 23739781 by jason walter in ue5-main branch]
2023-01-17 12:04:24 -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);
}