mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine get_send_timeout in time unit
This commit is contained in:
parent
f4bee37e76
commit
38bbf6b111
9 changed files with 34 additions and 50 deletions
|
@ -402,10 +402,10 @@ void SimpleSocketStream::set_send_timeout(srs_utime_t tm)
|
|||
srs_hijack_io_set_send_timeout(io, srsu2ms(tm));
|
||||
}
|
||||
|
||||
int64_t SimpleSocketStream::get_send_timeout()
|
||||
srs_utime_t SimpleSocketStream::get_send_timeout()
|
||||
{
|
||||
srs_assert(io);
|
||||
return srs_hijack_io_get_send_timeout(io);
|
||||
return srs_hijack_io_get_send_timeout(io) * SRS_UTIME_MILLISECONDS;
|
||||
}
|
||||
|
||||
int64_t SimpleSocketStream::get_send_bytes()
|
||||
|
|
|
@ -60,7 +60,7 @@ public:
|
|||
// ISrsProtocolWriter
|
||||
public:
|
||||
virtual void set_send_timeout(srs_utime_t tm);
|
||||
virtual int64_t get_send_timeout();
|
||||
virtual srs_utime_t get_send_timeout();
|
||||
virtual int64_t get_send_bytes();
|
||||
virtual srs_error_t writev(const iovec *iov, int iov_size, ssize_t* nwrite);
|
||||
// ISrsProtocolReadWriter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue