Files
UnrealEngineUWP/Engine/Source/Programs/Unsync/Private/UnsyncCmdQuery.h
yuriy odonnell c33f84e382 unsync - Groundwork for list query
#jira UE-192913
#rb none

[CL 27341587 by yuriy odonnell in ue5-main branch]
2023-08-24 10:44:55 -04:00

30 lines
496 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::string Args;
FRemoteDesc Remote;
};
int32 CmdQuery(const FCmdQueryOptions& Options);
struct FMirrorInfo
{
std::string Name;
std::string Address;
uint16 Port = UNSYNC_DEFAULT_PORT;
double Ping = 0;
};
TResult<FMirrorInfo> FindClosestMirror(const FRemoteDesc& Remote);
} // namespace unsync