mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #442, support kickoff client.
This commit is contained in:
parent
b37797b13a
commit
94641c812b
11 changed files with 57 additions and 46 deletions
|
@ -88,6 +88,11 @@ protected:
|
|||
* when disposed, connection should stop cycle and cleanup itself.
|
||||
*/
|
||||
bool disposed;
|
||||
/**
|
||||
* whether connection is expired, application definition.
|
||||
* when expired, the connection must never be served and quit ASAP.
|
||||
*/
|
||||
bool expired;
|
||||
public:
|
||||
SrsConnection(IConnectionManager* cm, st_netfd_t c);
|
||||
virtual ~SrsConnection();
|
||||
|
@ -125,6 +130,10 @@ public:
|
|||
* get the srs id which identify the client.
|
||||
*/
|
||||
virtual int srs_id();
|
||||
/**
|
||||
* set connection to expired.
|
||||
*/
|
||||
virtual void expire();
|
||||
protected:
|
||||
/**
|
||||
* for concrete connection to do the cycle.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue