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
2015-09-17 14:03:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
225e7426579efcbd9d1efb6ccde7c2c15091db25
225e7426
1 parent
1fd83d93
add args3
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
20 行增加
和
10 行删除
trunk/src/app/srs_app_config.cpp
trunk/src/app/srs_app_config.hpp
trunk/src/app/srs_app_config.cpp
查看文件 @
225e742
...
...
@@ -670,6 +670,15 @@ string SrsConfDirective::arg2()
return
""
;
}
string
SrsConfDirective
::
arg3
()
{
if
(
args
.
size
()
>
3
)
{
return
args
.
at
(
3
);
}
return
""
;
}
SrsConfDirective
*
SrsConfDirective
::
at
(
int
index
)
{
srs_assert
(
index
<
(
int
)
directives
.
size
());
...
...
trunk/src/app/srs_app_config.hpp
查看文件 @
225e742
...
...
@@ -155,20 +155,20 @@ class SrsConfDirective
{
public
:
/**
* the line of config file in which the directive from
*/
* the line of config file in which the directive from
*/
int
conf_line
;
/**
* the name of directive, for example, the following config text:
* enabled on;
* will be parsed to a directive, its name is "enalbed"
*/
* the name of directive, for example, the following config text:
* enabled on;
* will be parsed to a directive, its name is "enalbed"
*/
std
::
string
name
;
/**
* the args of directive, for example, the following config text:
* listen 1935 1936;
* will be parsed to a directive, its args is ["1935", "1936"].
*/
* the args of directive, for example, the following config text:
* listen 1935 1936;
* will be parsed to a directive, its args is ["1935", "1936"].
*/
std
::
vector
<
std
::
string
>
args
;
/**
* the child directives, for example, the following config text:
...
...
@@ -201,6 +201,7 @@ public:
virtual
std
::
string
arg0
();
virtual
std
::
string
arg1
();
virtual
std
::
string
arg2
();
virtual
std
::
string
arg3
();
// directives
public:
/**
...
...
请
注册
或
登录
后发表评论