mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code of server.
This commit is contained in:
parent
8b6c78b862
commit
afd6428366
2 changed files with 33 additions and 34 deletions
|
@ -315,14 +315,6 @@ public:
|
|||
virtual int ingest();
|
||||
virtual int start_kafka();
|
||||
virtual int cycle();
|
||||
// IConnectionManager
|
||||
public:
|
||||
/**
|
||||
* callback for connection to remove itself.
|
||||
* when connection thread cycle terminated, callback this to delete connection.
|
||||
* @see SrsConnection.on_thread_stop().
|
||||
*/
|
||||
virtual void remove(SrsConnection* conn);
|
||||
// server utilities.
|
||||
public:
|
||||
/**
|
||||
|
@ -372,6 +364,14 @@ public:
|
|||
* @param client_stfd, the client fd in st boxed, the underlayer fd.
|
||||
*/
|
||||
virtual int accept_client(SrsListenerType type, st_netfd_t client_stfd);
|
||||
// IConnectionManager
|
||||
public:
|
||||
/**
|
||||
* callback for connection to remove itself.
|
||||
* when connection thread cycle terminated, callback this to delete connection.
|
||||
* @see SrsConnection.on_thread_stop().
|
||||
*/
|
||||
virtual void remove(SrsConnection* conn);
|
||||
// interface ISrsReloadHandler.
|
||||
public:
|
||||
virtual int on_reload_listen();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue