Files
FlaxEngine/Source/Engine/Networking/NetworkStats.h
2024-02-26 19:00:48 +01:00

36 lines
1.0 KiB
C++

// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
#pragma once
#include "Engine/Core/Compiler.h"
#include "Engine/Core/Config.h"
/// <summary>
/// The network transport driver statistics container. Contains information about INetworkDriver usage and performance.
/// </summary>
API_STRUCT(Namespace="FlaxEngine.Networking", NoDefault) struct FLAXENGINE_API NetworkDriverStats
{
DECLARE_SCRIPTING_TYPE_MINIMAL(NetworkDriverStats);
/// <summary>
/// The mean round trip time (RTT), in milliseconds, between sending a reliable packet and receiving its acknowledgement. Also known as ping time.
/// </summary>
API_FIELD() float RTT = 0.0f;
/// <summary>
/// Total amount of data bytes sent by this client.
/// </summary>
API_FIELD() uint32 TotalDataSent = 0;
/// <summary>
/// Total amount of data bytes received by this client.
/// </summary>
API_FIELD() uint32 TotalDataReceived = 0;
};
template<>
struct TIsPODType<NetworkDriverStats>
{
enum { Value = true };
};