mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
23 lines
388 B
C++
23 lines
388 B
C++
#ifndef _RTP_STATISTICS_H_
|
|
#define _RTP_STATISTICS_H_
|
|
|
|
#include "thread_base.h"
|
|
|
|
class RtpStatistics : public ThreadBase {
|
|
public:
|
|
RtpStatistics();
|
|
~RtpStatistics();
|
|
|
|
public:
|
|
void UpdateSentBytes(uint32_t sent_bytes);
|
|
void UpdateReceiveBytes(uint32_t received_bytes);
|
|
|
|
private:
|
|
bool Process();
|
|
|
|
private:
|
|
uint32_t sent_bytes_ = 0;
|
|
uint32_t received_bytes_ = 0;
|
|
};
|
|
|
|
#endif |