Files
UnrealEngine/Engine/Source/Programs/Unsync/Private/UnsyncCmdQuery.h
2025-05-18 13:04:45 +08:00

34 lines
581 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#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