mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine code
This commit is contained in:
parent
4ccb83834d
commit
42a2dea5e0
5 changed files with 12 additions and 10 deletions
|
|
@ -151,6 +151,7 @@ srs_error_t SrsHybridServer::run()
|
|||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
// TODO: FIXME: Identify master server directly.
|
||||
// Run master server in this main thread.
|
||||
SrsServerAdapter* master_server = NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ SrsRtpNackForReceiver::SrsRtpNackForReceiver(SrsRtpRingBuffer* rtp, size_t queue
|
|||
rtt_ = 0;
|
||||
|
||||
srs_info("max_queue_size=%u, nack opt: max_count=%d, max_alive_time=%us, first_nack_interval=%" PRId64 ", nack_interval=%" PRId64,
|
||||
max_queue_size_, opts_.max_count, opts_.max_alive_time, opts.first_nack_interval, opts_.nack_interval);
|
||||
max_queue_size_, opts_.max_count, opts_.max_alive_time, opts_.first_nack_interval, opts_.nack_interval);
|
||||
}
|
||||
|
||||
SrsRtpNackForReceiver::~SrsRtpNackForReceiver()
|
||||
|
|
|
|||
|
|
@ -1070,7 +1070,7 @@ srs_error_t SrsServer::cycle()
|
|||
|
||||
// fast quit, do some essential cleanup.
|
||||
if (signal_fast_quit) {
|
||||
dispose();
|
||||
dispose(); // TODO: FIXME: Rename to essential_dispose.
|
||||
srs_trace("srs disposed");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -240,11 +240,12 @@ public:
|
|||
virtual void on_logrotate() = 0;
|
||||
};
|
||||
|
||||
// TODO: FIXME: Rename to SrsLiveServer.
|
||||
// SRS RTMP server, initialize and listen, start connection service thread, destroy client.
|
||||
class SrsServer : virtual public ISrsReloadHandler, virtual public ISrsSourceHandler, virtual public ISrsResourceManager
|
||||
{
|
||||
private:
|
||||
// TODO: FIXME: rename to http_api
|
||||
// TODO: FIXME: Extract an HttpApiServer.
|
||||
SrsHttpServeMux* http_api_mux;
|
||||
SrsHttpServer* http_server;
|
||||
SrsHttpHeartbeat* http_heartbeat;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue