Implementation for user data sending

This commit is contained in:
dijunkun
2023-09-13 17:31:02 +08:00
parent e2533d18e4
commit a0abb7455c
27 changed files with 513 additions and 233 deletions

23
src/rtp/rtp_statistics.h Normal file
View 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