mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 13:17:49 +00:00
37 lines
955 B
C++
37 lines
955 B
C++
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|
|
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|
|
//// PARTICULAR PURPOSE.
|
|
////
|
|
//// Copyright (c) Microsoft Corporation. All rights reserved
|
|
#pragma once
|
|
#include "MeshPacketStructs.h"
|
|
|
|
using namespace Windows::Foundation;
|
|
|
|
namespace Microsoft {
|
|
namespace Xbox {
|
|
namespace Samples {
|
|
namespace NetworkMesh {
|
|
|
|
public ref class MeshHeartbeatStatisticsForConnection sealed
|
|
{
|
|
public:
|
|
MeshHeartbeatStatisticsForConnection();
|
|
|
|
property TimeSpan LastHeartbeatReceived { TimeSpan get(); }
|
|
property TimeSpan LastHeartbeatSent { TimeSpan get(); }
|
|
|
|
internal:
|
|
void SetLastHeartbeatReceived(TimeSpan val);
|
|
void SetLastHeartbeatSent(TimeSpan val);
|
|
|
|
private:
|
|
Concurrency::critical_section m_stateLock;
|
|
|
|
TimeSpan m_lastHeartbeatReceived;
|
|
TimeSpan m_lastHeartbeatSent;
|
|
};
|
|
|
|
}}}}
|