mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine set_recv_timeout in time unit
This commit is contained in:
parent
38bbf6b111
commit
d3dc45f357
20 changed files with 45 additions and 46 deletions
|
@ -304,11 +304,10 @@ public:
|
|||
#endif
|
||||
public:
|
||||
/**
|
||||
* set/get the recv timeout in ms.
|
||||
* set/get the recv timeout in srs_utime_t.
|
||||
* if timeout, recv/send message return ERROR_SOCKET_TIMEOUT.
|
||||
*/
|
||||
// TODO: FIXME: Refine tm in time unit.
|
||||
virtual void set_recv_timeout(int64_t tm);
|
||||
virtual void set_recv_timeout(srs_utime_t tm);
|
||||
virtual int64_t get_recv_timeout();
|
||||
/**
|
||||
* set/get the send timeout in srs_utime_t.
|
||||
|
@ -688,7 +687,7 @@ public:
|
|||
virtual ~SrsRtmpClient();
|
||||
// protocol methods proxy
|
||||
public:
|
||||
virtual void set_recv_timeout(int64_t tm);
|
||||
virtual void set_recv_timeout(srs_utime_t tm);
|
||||
virtual void set_send_timeout(srs_utime_t tm);
|
||||
virtual int64_t get_recv_bytes();
|
||||
virtual int64_t get_send_bytes();
|
||||
|
@ -805,10 +804,10 @@ public:
|
|||
virtual void set_recv_buffer(int buffer_size);
|
||||
#endif
|
||||
/**
|
||||
* set/get the recv timeout in ms.
|
||||
* set/get the recv timeout in srs_utime_t.
|
||||
* if timeout, recv/send message return ERROR_SOCKET_TIMEOUT.
|
||||
*/
|
||||
virtual void set_recv_timeout(int64_t tm);
|
||||
virtual void set_recv_timeout(srs_utime_t tm);
|
||||
virtual int64_t get_recv_timeout();
|
||||
/**
|
||||
* set/get the send timeout in srs_utime_t.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue