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

support daemon

This commit is contained in:
winlin 2014-03-23 12:42:05 +08:00
parent 2c1354b9b9
commit 3ec3c1f532
5 changed files with 102 additions and 29 deletions

View file

@ -1282,6 +1282,18 @@ string SrsConfig::get_srs_log_file()
return conf->arg0();
}
bool SrsConfig::get_deamon()
{
srs_assert(root);
SrsConfDirective* conf = root->get("deamon");
if (conf && conf->arg0() == "off") {
return false;
}
return true;
}
int SrsConfig::get_max_connections()
{
srs_assert(root);