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

Refine code, move SRS adapter.

This commit is contained in:
winlin 2021-02-15 20:01:49 +08:00
parent d8e27c3845
commit 57919e4351
4 changed files with 87 additions and 85 deletions

View file

@ -31,6 +31,7 @@
#include <srs_app_hourglass.hpp>
class SrsServer;
class SrsServerAdapter;
// The hibrid server interfaces, we could register many servers.
class ISrsHybridServer
@ -47,22 +48,6 @@ public:
virtual void stop() = 0;
};
// The SRS server adapter, the master server.
class SrsServerAdapter : public ISrsHybridServer
{
private:
SrsServer* srs;
public:
SrsServerAdapter();
virtual ~SrsServerAdapter();
public:
virtual srs_error_t initialize();
virtual srs_error_t run();
virtual void stop();
public:
virtual SrsServer* instance();
};
// The hybrid server manager.
class SrsHybridServer : public ISrsHourGlass
{