Files
UnrealEngineUWP/Engine/Source/Programs/Unsync/Private/UnsyncCmdQuery.h
yuriy odonnell 4ba5f8d39d unsync - Automatically enable TLS when server port is standard https/443
[CL 33095223 by yuriy odonnell in ue5-main branch]
2024-04-18 22:55:33 -04:00

32 lines
567 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "UnsyncCommon.h"
#include "UnsyncRemote.h"
#include <string>
namespace unsync {
struct FCmdQueryOptions
{
std::string Query;
std::vector<std::string> Args;
FPath OutputPath;
FRemoteDesc Remote;
};
int32 CmdQuery(const FCmdQueryOptions& Options);
struct FMirrorInfo
{
std::string Name;
std::string Address;
std::string Description;
uint16 Port = UNSYNC_DEFAULT_PORT;
double Ping = 0;
};
TResult<FMirrorInfo> FindClosestMirror(const FRemoteDesc& Remote);
} // namespace unsync