You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
42 lines
712 B
C++
42 lines
712 B
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Misc/Guid.h"
|
|
|
|
class ITransport;
|
|
|
|
#if ENABLE_HTTP_FOR_NF
|
|
#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> ReceiveBuffer;
|
|
uint32 ReadPtr;
|
|
|
|
};
|
|
#endif
|