mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refactor ISrsKbpsDelta
This commit is contained in:
parent
dcebf8a31f
commit
6234905532
13 changed files with 146 additions and 159 deletions
|
@ -58,24 +58,9 @@ SrsConnection::~SrsConnection()
|
|||
srs_close_stfd(stfd);
|
||||
}
|
||||
|
||||
void SrsConnection::resample()
|
||||
void SrsConnection::remark(int64_t* in, int64_t* out)
|
||||
{
|
||||
kbps->resample();
|
||||
}
|
||||
|
||||
int64_t SrsConnection::get_send_bytes_delta()
|
||||
{
|
||||
return kbps->get_send_bytes_delta();
|
||||
}
|
||||
|
||||
int64_t SrsConnection::get_recv_bytes_delta()
|
||||
{
|
||||
return kbps->get_recv_bytes_delta();
|
||||
}
|
||||
|
||||
void SrsConnection::cleanup()
|
||||
{
|
||||
kbps->cleanup();
|
||||
kbps->remark(in, out);
|
||||
}
|
||||
|
||||
void SrsConnection::dispose()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue