2022-03-01 05:53:29 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
2024-05-26 13:37:37 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
2022-03-01 05:53:29 -05:00
|
|
|
#include "UnsyncCommon.h"
|
|
|
|
|
#include "UnsyncRemote.h"
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
namespace unsync {
|
|
|
|
|
|
|
|
|
|
struct FCmdQueryOptions
|
|
|
|
|
{
|
2023-09-22 20:13:26 -04:00
|
|
|
std::string Query;
|
|
|
|
|
std::vector<std::string> Args;
|
|
|
|
|
FPath OutputPath;
|
|
|
|
|
FRemoteDesc Remote;
|
2022-03-01 05:53:29 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
int32 CmdQuery(const FCmdQueryOptions& Options);
|
|
|
|
|
|
2023-06-21 15:01:35 -04:00
|
|
|
struct FMirrorInfo
|
|
|
|
|
{
|
|
|
|
|
std::string Name;
|
|
|
|
|
std::string Address;
|
2024-04-18 22:55:33 -04:00
|
|
|
std::string Description;
|
2023-06-21 15:01:35 -04:00
|
|
|
uint16 Port = UNSYNC_DEFAULT_PORT;
|
|
|
|
|
double Ping = 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
TResult<FMirrorInfo> FindClosestMirror(const FRemoteDesc& Remote);
|
|
|
|
|
|
2022-03-01 05:53:29 -05:00
|
|
|
} // namespace unsync
|