mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +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();
|
dead = born = srs_get_system_time();
|
||||||
nn_publishers = nn_subscribers = 0;
|
nn_publishers = nn_subscribers = 0;
|
||||||
|
@ -1503,11 +1503,11 @@ SrsRtcConnectionStat::SrsRtcConnectionStat()
|
||||||
nn_out_twcc = nn_out_rtp = nn_out_audios = nn_out_videos = 0;
|
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();
|
dead = srs_get_system_time();
|
||||||
|
|
||||||
|
@ -1544,7 +1544,7 @@ SrsRtcConnection::SrsRtcConnection(SrsRtcServer* s, SrsContextId context_id)
|
||||||
is_publisher_ = false;
|
is_publisher_ = false;
|
||||||
encrypt = true;
|
encrypt = true;
|
||||||
cid = context_id;
|
cid = context_id;
|
||||||
stat_ = new SrsRtcConnectionStat();
|
stat_ = new SrsRtcConnectionStatistic();
|
||||||
|
|
||||||
source_ = NULL;
|
source_ = NULL;
|
||||||
publisher_ = NULL;
|
publisher_ = NULL;
|
||||||
|
|
|
@ -289,21 +289,19 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
// The statistics for RTC connection.
|
// The statistics for RTC connection.
|
||||||
class SrsRtcConnectionStat
|
class SrsRtcConnectionStatistic
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
int nn_publishers;
|
int nn_publishers; int nn_subscribers;
|
||||||
int nn_subscribers;
|
int nn_rr; int nn_xr; int nn_sr; int nn_nack; int nn_pli;
|
||||||
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_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;
|
uint64_t nn_out_twcc; uint64_t nn_out_rtp; uint64_t nn_out_audios; uint64_t nn_out_videos;
|
||||||
private:
|
private:
|
||||||
srs_utime_t born;
|
srs_utime_t born;
|
||||||
srs_utime_t dead;
|
srs_utime_t dead;
|
||||||
public:
|
public:
|
||||||
SrsRtcConnectionStat();
|
SrsRtcConnectionStatistic();
|
||||||
virtual ~SrsRtcConnectionStat();
|
virtual ~SrsRtcConnectionStatistic();
|
||||||
public:
|
public:
|
||||||
std::string summary();
|
std::string summary();
|
||||||
};
|
};
|
||||||
|
@ -316,7 +314,7 @@ class SrsRtcConnection
|
||||||
friend class SrsRtcPublishStream;
|
friend class SrsRtcPublishStream;
|
||||||
public:
|
public:
|
||||||
bool disposing_;
|
bool disposing_;
|
||||||
SrsRtcConnectionStat* stat_;
|
SrsRtcConnectionStatistic* stat_;
|
||||||
private:
|
private:
|
||||||
SrsRtcServer* server_;
|
SrsRtcServer* server_;
|
||||||
SrsRtcConnectionStateType state_;
|
SrsRtcConnectionStateType state_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue