mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine framework to calc the kbps
This commit is contained in:
parent
3f33dffdb3
commit
9006194cd7
21 changed files with 153 additions and 131 deletions
|
@ -73,11 +73,6 @@ int64_t MockEmptyIO::get_recv_bytes()
|
|||
return -1;
|
||||
}
|
||||
|
||||
int MockEmptyIO::get_recv_kbps()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void MockEmptyIO::set_send_timeout(int64_t /*timeout_us*/)
|
||||
{
|
||||
}
|
||||
|
@ -92,11 +87,6 @@ int64_t MockEmptyIO::get_send_bytes()
|
|||
return 0;
|
||||
}
|
||||
|
||||
int MockEmptyIO::get_send_kbps()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int MockEmptyIO::writev(const iovec */*iov*/, int /*iov_size*/, ssize_t* /*nwrite*/)
|
||||
{
|
||||
return ERROR_SUCCESS;
|
||||
|
|
|
@ -53,13 +53,11 @@ public:
|
|||
virtual void set_recv_timeout(int64_t timeout_us);
|
||||
virtual int64_t get_recv_timeout();
|
||||
virtual int64_t get_recv_bytes();
|
||||
virtual int get_recv_kbps();
|
||||
// for protocol
|
||||
public:
|
||||
virtual void set_send_timeout(int64_t timeout_us);
|
||||
virtual int64_t get_send_timeout();
|
||||
virtual int64_t get_send_bytes();
|
||||
virtual int get_send_kbps();
|
||||
virtual int writev(const iovec *iov, int iov_size, ssize_t* nwrite);
|
||||
// for protocol/amf0/msg-codec
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue