Files
UnrealEngineUWP/Engine/Source/Runtime/NetworkFile/Private/HTTPTransport.h
Ankit Khare d40dcb3005 #HTML5 #UE4 Fix up cook on the fly to use the async Transport APIs.
- Use a temporary buffer to collect all the unsolicited files and then pass them on as and when requested for single threaded HTML5.

#daniel.lamb

[CL 2261419 by Ankit Khare in Main branch]
2014-08-18 16:55:29 -04:00

35 lines
643 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) override;
virtual bool SendPayloadAndReceiveResponse(TArray<uint8>& In, TArray<uint8>& Out) override;
virtual bool ReceiveResponse(TArray<uint8> &Out) override;
private:
#if !PLATFORM_HTML5
FHttpRequestPtr HttpRequest;
#endif
FGuid Guid;
TCHAR Url[1048];
TArray<uint8> RecieveBuffer;
uint32 ReadPtr;
};
#endif