mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
RTC: Rename connection stat
This commit is contained in:
parent
77256eee08
commit
0131472ae5
2 changed files with 10 additions and 12 deletions
|
@ -1493,7 +1493,7 @@ void SrsRtcPublishStream::update_send_report_time(uint32_t ssrc, const SrsNtp& n
|
|||
}
|
||||
}
|
||||
|
||||
SrsRtcConnectionStat::SrsRtcConnectionStat()
|
||||
SrsRtcConnectionStatistic::SrsRtcConnectionStatistic()
|
||||
{
|
||||
dead = born = srs_get_system_time();
|
||||
nn_publishers = nn_subscribers = 0;
|
||||
|
@ -1503,11 +1503,11 @@ SrsRtcConnectionStat::SrsRtcConnectionStat()
|
|||
nn_out_twcc = nn_out_rtp = nn_out_audios = nn_out_videos = 0;
|
||||
}
|
||||
|
||||
SrsRtcConnectionStat::~SrsRtcConnectionStat()
|
||||
SrsRtcConnectionStatistic::~SrsRtcConnectionStatistic()
|
||||
{
|
||||
}
|
||||
|
||||
string SrsRtcConnectionStat::summary()
|
||||
string SrsRtcConnectionStatistic::summary()
|
||||
{
|
||||
dead = srs_get_system_time();
|
||||
|
||||
|
@ -1544,7 +1544,7 @@ SrsRtcConnection::SrsRtcConnection(SrsRtcServer* s, SrsContextId context_id)
|
|||
is_publisher_ = false;
|
||||
encrypt = true;
|
||||
cid = context_id;
|
||||
stat_ = new SrsRtcConnectionStat();
|
||||
stat_ = new SrsRtcConnectionStatistic();
|
||||
|
||||
source_ = NULL;
|
||||
publisher_ = NULL;
|
||||
|
|
|
@ -289,21 +289,19 @@ private:
|
|||
};
|
||||
|
||||
// The statistics for RTC connection.
|
||||
class SrsRtcConnectionStat
|
||||
class SrsRtcConnectionStatistic
|
||||
{
|
||||
public:
|
||||
int nn_publishers;
|
||||
int nn_subscribers;
|
||||
int nn_rr; int nn_xr;
|
||||
int nn_sr; int nn_nack; int nn_pli;
|
||||
int nn_publishers; int nn_subscribers;
|
||||
int nn_rr; int nn_xr; int nn_sr; int nn_nack; int nn_pli;
|
||||
uint64_t nn_in_twcc; uint64_t nn_in_rtp; uint64_t nn_in_audios; uint64_t nn_in_videos;
|
||||
uint64_t nn_out_twcc; uint64_t nn_out_rtp; uint64_t nn_out_audios; uint64_t nn_out_videos;
|
||||
private:
|
||||
srs_utime_t born;
|
||||
srs_utime_t dead;
|
||||
public:
|
||||
SrsRtcConnectionStat();
|
||||
virtual ~SrsRtcConnectionStat();
|
||||
SrsRtcConnectionStatistic();
|
||||
virtual ~SrsRtcConnectionStatistic();
|
||||
public:
|
||||
std::string summary();
|
||||
};
|
||||
|
@ -316,7 +314,7 @@ class SrsRtcConnection
|
|||
friend class SrsRtcPublishStream;
|
||||
public:
|
||||
bool disposing_;
|
||||
SrsRtcConnectionStat* stat_;
|
||||
SrsRtcConnectionStatistic* stat_;
|
||||
private:
|
||||
SrsRtcServer* server_;
|
||||
SrsRtcConnectionStateType state_;
|
||||
|
|
Loading…
Reference in a new issue