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
|
@ -140,12 +140,9 @@ public:
|
|||
virtual srs_error_t on_reload_vhost_tcp_nodelay(std::string vhost);
|
||||
virtual srs_error_t on_reload_vhost_realtime(std::string vhost);
|
||||
virtual srs_error_t on_reload_vhost_publish(std::string vhost);
|
||||
// interface IKbpsDelta
|
||||
// interface ISrsKbpsDelta
|
||||
public:
|
||||
virtual void resample();
|
||||
virtual int64_t get_send_bytes_delta();
|
||||
virtual int64_t get_recv_bytes_delta();
|
||||
virtual void cleanup();
|
||||
virtual void remark(int64_t* in, int64_t* out);
|
||||
private:
|
||||
// when valid and connected to vhost/app, service the client.
|
||||
virtual srs_error_t service_cycle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue