Add network stats API for transport layer
This commit is contained in:
@@ -27,6 +27,7 @@ private:
|
||||
Array<NetworkConnection> Targets;
|
||||
Array<byte> MessageData; // TODO: use message buffers cache (of size config.MessageSize) to reduce dynamic memory allocations
|
||||
};
|
||||
|
||||
struct LagEvent
|
||||
{
|
||||
double Lag;
|
||||
@@ -71,6 +72,8 @@ public:
|
||||
void SendMessage(NetworkChannelType channelType, const NetworkMessage& message) override;
|
||||
void SendMessage(NetworkChannelType channelType, const NetworkMessage& message, NetworkConnection target) override;
|
||||
void SendMessage(NetworkChannelType channelType, const NetworkMessage& message, const Array<NetworkConnection, HeapAllocation>& targets) override;
|
||||
NetworkDriverStats GetStats() override;
|
||||
NetworkDriverStats GetStats(NetworkConnection target) override;
|
||||
|
||||
private:
|
||||
void OnUpdate();
|
||||
|
||||
Reference in New Issue
Block a user