You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
HTML5 browser build fixes for NFS over http. Todo: Correctly generate html5 file when serving via NFS. howto: - flip relevant bools in UEBuildHTML5.cs - build html5/cooker. - run cook on the fly server via UFE. - Remove .data/.data.js references from .html ( see todo) - point browser at http://cookserver:DEFAULT_FILE_SERVING_PORT/gamename.html #codereview peter.sauerbrei [CL 2109950 by Ankit Khare in Main branch]
31 lines
514 B
C++
31 lines
514 B
C++
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
#pragma once
|
|
#if ENABLE_HTTP_FOR_NFS
|
|
#include "ITransport.h"
|
|
|
|
#if !PLATFORM_HTML5
|
|
#include "Http.h"
|
|
#endif
|
|
|
|
class FHTTPTransport : public ITransport
|
|
{
|
|
|
|
public:
|
|
|
|
FHTTPTransport();
|
|
|
|
// ITransport Interface.
|
|
virtual bool Initialize(const TCHAR* HostIp);
|
|
virtual bool SendPayloadAndReceiveResponse(TArray<uint8>& In, TArray<uint8>& Out);
|
|
|
|
private:
|
|
|
|
#if !PLATFORM_HTML5
|
|
FHttpRequestPtr HttpRequest;
|
|
#endif
|
|
|
|
FGuid Guid;
|
|
TCHAR Url[1048];
|
|
|
|
};
|
|
#endif |