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

Refine get_recv_timeout and is_never_timeout in time unit

This commit is contained in:
winlin 2019-04-17 08:38:34 +08:00
parent d3dc45f357
commit 5a45fd98c3
9 changed files with 28 additions and 28 deletions

View file

@ -88,7 +88,7 @@ public:
// @remark Use SRS_UTIME_NO_TIMEOUT to never timeout.
virtual void set_recv_timeout(srs_utime_t tm) = 0;
// Get the timeout in ms for recv bytes from peer.
virtual int64_t get_recv_timeout() = 0;
virtual srs_utime_t get_recv_timeout() = 0;
// For handshake.
public:
// Read specified size bytes of data
@ -124,7 +124,7 @@ public:
// For protocol
public:
// Whether the specified tm in ms is never timeout.
virtual bool is_never_timeout(int64_t tm) = 0;
virtual bool is_never_timeout(srs_utime_t tm) = 0;
};
#endif