mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
23 lines
396 B
C++
23 lines
396 B
C++
#ifndef _RTP_STATISTICS_H_
|
|
#define _RTP_STATISTICS_H_
|
|
|
|
#include "thread_base.h"
|
|
|
|
class RtpStatistics : public ThreadBase {
|
|
public:
|
|
RtpStatistics();
|
|
virtual ~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 |