Files
UnrealEngineUWP/Engine/Source/Runtime/CookOnTheFly/Private/CookOnTheFlyServerConnection.h
CarlMagnus Nordin 0282a5aef6 Unified Zen and legacy COTF network protocols.
*Reduces code duplication
*Enables the same ODSC flow to be used for both COTF variants
*The client will now autodetect if it should run in Zen mode or not
#rb pj.kack,per.larsson
#preflight 628c79bdf057b981ca479b3e

[CL 20344832 by CarlMagnus Nordin in ue5-main branch]
2022-05-24 02:50:39 -04:00

24 lines
631 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CookOnTheFly.h"
class FArrayReader;
class ICookOnTheFlyServerTransport
{
public:
ICookOnTheFlyServerTransport() {};
virtual ~ICookOnTheFlyServerTransport() {};
virtual bool Initialize(const TCHAR*) = 0;
virtual void Disconnect() = 0;
virtual bool SendPayload(const TArray<uint8>& Payload) = 0;
virtual bool HasPendingPayload() = 0;
virtual bool ReceivePayload(FArrayReader& Payload) = 0;
};
UE::Cook::ICookOnTheFlyServerConnection* MakeCookOnTheFlyServerConnection(TUniquePtr<ICookOnTheFlyServerTransport> InTransport, const FString& InHost);