Files
UnrealEngine/Engine/Plugins/Media/PixelStreaming/Source/PixelStreamingServers/Private/CirrusWrapper.h
2025-05-18 13:04:45 +08:00

31 lines
849 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "PixelStreamingServers.h"
#include "WebSocketProbe.h"
#include "MonitoredServerBase.h"
namespace UE::PixelStreamingServers
{
/* The NodeJS Cirrus signalling server launched as a child process. */
class FCirrusWrapper : public FMonitoredServerBase
{
public:
FCirrusWrapper() = default;
virtual ~FCirrusWrapper() = default;
private:
TUniquePtr<FWebSocketProbe> Probe;
protected:
/* Begin FMonitoredServerBase interface */
void Stop() override;
TSharedPtr<FMonitoredProcess> LaunchServerProcess(FLaunchArgs& InLaunchArgs, FString ServerAbsPath, TMap<EEndpoint, FURL>& OutEndPoints) override;
bool TestConnection() override;
FString GetServerResourceDirectory() override;
/* End FMonitoredServerBase interface */
};
} // UE::PixelStreamingServers