Reece Wilson
7be2d3fbdc
[+] AuNet::ISocketStats [+] AuNet::ISocketChannel::GetRecvStats() [+] AuNet::ISocketChannel::GetSendStats() [+] AuIO::IOProcessor::RunTickEx(AuUInt32 dwTimeout) [*] Refactor clock APIs [+] Documentation in headers [+] AuIO::IIOPipeWork::GetStartTickMS() [+] AuIO::IIOPipeWork::GetLastTickMS() [+] AuIO::IIOPipeWork::GetPredictedThroughput() [+] AuIO::IIOPipeWork::GetBytesProcessed()
38 lines
786 B
C++
38 lines
786 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: ISocketStats.hpp
|
|
Date: 2022-12-06
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::IO::Net
|
|
{
|
|
struct ISocketStats
|
|
{
|
|
/**
|
|
* @brief time from the au epoch. see: AuTime::.
|
|
* @return
|
|
*/
|
|
virtual AuInt64 GetFirstTickTimeMS() = 0;
|
|
|
|
/**
|
|
* @brief time from the au epoch. see: AuTime::.
|
|
* @return
|
|
*/
|
|
virtual AuInt64 GetLastTickTimeMS() = 0;
|
|
|
|
/**
|
|
* @brief
|
|
* @return
|
|
*/
|
|
virtual AuUInt64 GetTotalBytesTransferred() = 0;
|
|
|
|
/**
|
|
* @brief
|
|
* @return bytes / second
|
|
*/
|
|
virtual double GetApproximatedThroughput() = 0;
|
|
};
|
|
} |