1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add srs bytes and kbps to api summaries. 0.9.126

This commit is contained in:
winlin 2014-06-19 15:28:05 +08:00
parent 8fabd5d987
commit 6ee2ba049b
17 changed files with 325 additions and 36 deletions

View file

@ -51,7 +51,7 @@ class SrsKbps;
/**
* the client provides the main logic control for RTMP clients.
*/
class SrsRtmpConn : public SrsConnection, public ISrsReloadHandler
class SrsRtmpConn : public virtual SrsConnection, public virtual ISrsReloadHandler
{
private:
SrsRequest* req;
@ -68,11 +68,17 @@ private:
public:
SrsRtmpConn(SrsServer* srs_server, st_netfd_t client_stfd);
virtual ~SrsRtmpConn();
public:
virtual void kbps_resample();
protected:
virtual int do_cycle();
// interface ISrsReloadHandler
public:
virtual int on_reload_vhost_removed(std::string vhost);
// interface IKbpsDelta
public:
virtual int64_t get_send_bytes_delta();
virtual int64_t get_recv_bytes_delta();
private:
// when valid and connected to vhost/app, service the client.
virtual int service_cycle();