Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-07-18 10:56:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2293700728541c2e722610f0a2d4b860e981f231
22937007
1 parent
1accd8c7
refine config, remove the const string&
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
19 行增加
和
15 行删除
trunk/src/app/srs_app_config.cpp
trunk/src/app/srs_app_config.hpp
trunk/src/app/srs_app_config.cpp
查看文件 @
2293700
...
...
@@ -1570,7 +1570,7 @@ SrsConfDirective* SrsConfig::get_refer_publish(string vhost)
return
conf
->
get
(
"refer_publish"
);
}
int
SrsConfig
::
get_chunk_size
(
const
string
&
vhost
)
int
SrsConfig
::
get_chunk_size
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
...
...
@@ -1751,7 +1751,7 @@ SrsConfDirective* SrsConfig::get_vhost_on_dvr_hss_reap_flv(string vhost)
return
conf
->
get
(
"on_dvr_hss_reap_flv"
);
}
bool
SrsConfig
::
get_bw_check_enabled
(
const
string
&
vhost
)
bool
SrsConfig
::
get_bw_check_enabled
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
...
...
@@ -1772,7 +1772,7 @@ bool SrsConfig::get_bw_check_enabled(const string &vhost)
return
true
;
}
string
SrsConfig
::
get_bw_check_key
(
const
string
&
vhost
)
string
SrsConfig
::
get_bw_check_key
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
...
...
@@ -1793,7 +1793,7 @@ string SrsConfig::get_bw_check_key(const string &vhost)
return
conf
->
arg0
();
}
int
SrsConfig
::
get_bw_check_interval_ms
(
const
string
&
vhost
)
int
SrsConfig
::
get_bw_check_interval_ms
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
...
...
@@ -1814,7 +1814,7 @@ int SrsConfig::get_bw_check_interval_ms(const string &vhost)
return
::
atof
(
conf
->
arg0
().
c_str
())
*
1000
;
}
int
SrsConfig
::
get_bw_check_limit_kbps
(
const
string
&
vhost
)
int
SrsConfig
::
get_bw_check_limit_kbps
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
...
...
trunk/src/app/srs_app_config.hpp
查看文件 @
2293700
...
...
@@ -457,25 +457,29 @@ public:
*/
virtual
int
get_time_jitter
(
std
::
string
vhost
);
/**
*
* get the cache queue length, in seconds.
* when exceed the queue length, drop packet util I frame.
*/
virtual
double
get_queue_length
(
std
::
string
vhost
);
/**
*
* get the refer antisuck directive.
* each args of directive is a refer config.
* when the client refer(pageUrl) not match the refer config,
* SRS will reject the connection.
*/
virtual
SrsConfDirective
*
get_refer
(
std
::
string
vhost
);
/**
*
*
get the play refer, refer for play clients.
*/
virtual
SrsConfDirective
*
get_refer_play
(
std
::
string
vhost
);
/**
*
*
get the publish refer, refer for publish clients.
*/
virtual
SrsConfDirective
*
get_refer_publish
(
std
::
string
vhost
);
/**
*
*
get the chunk size of vhost.
*/
virtual
int
get_chunk_size
(
const
std
::
string
&
vhost
);
virtual
int
get_chunk_size
(
std
::
string
vhost
);
// forward section
public:
/**
...
...
@@ -524,19 +528,19 @@ public:
/**
*
*/
virtual
bool
get_bw_check_enabled
(
const
std
::
string
&
vhost
);
virtual
bool
get_bw_check_enabled
(
std
::
string
vhost
);
/**
*
*/
virtual
std
::
string
get_bw_check_key
(
const
std
::
string
&
vhost
);
virtual
std
::
string
get_bw_check_key
(
std
::
string
vhost
);
/**
*
*/
virtual
int
get_bw_check_interval_ms
(
const
std
::
string
&
vhost
);
virtual
int
get_bw_check_interval_ms
(
std
::
string
vhost
);
/**
*
*/
virtual
int
get_bw_check_limit_kbps
(
const
std
::
string
&
vhost
);
virtual
int
get_bw_check_limit_kbps
(
std
::
string
vhost
);
// vhost edge section
public:
/**
...
...
请
注册
或
登录
后发表评论