mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Implementation for user data sending
This commit is contained in:
23
src/rtp/rtp_statistics.h
Normal file
23
src/rtp/rtp_statistics.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user