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-12-31 15:57:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
26211abf2eb4720366f11d671ca3efc088101e02
26211abf
1 parent
eca46c03
refine code.
隐藏空白字符变更
内嵌
并排对比
正在显示
7 个修改的文件
包含
35 行增加
和
12 行删除
AUTHORS.txt
trunk/src/app/srs_app_config.cpp
trunk/src/app/srs_app_http_conn.cpp
trunk/src/core/srs_core.hpp
trunk/src/kernel/srs_kernel_utility.cpp
trunk/src/kernel/srs_kernel_utility.hpp
trunk/src/main/srs_main_server.cpp
AUTHORS.txt
查看文件 @
26211ab
...
...
@@ -21,4 +21,9 @@ CONTRIBUTORS ordered by first contribution.
* allspace<allspace@gmail.com> "The srs-librtmp windows support"
* niesongsong<nie950@gmail.com> "Configure support relative path"
* rudeb0t<nimrod@themanxgroup.tw> "Bug fixed"
* CallMeNP<np.liamg@gmail.com> "Bug fixed"
* synote<synote@qq.com> "Bug fixed"
* lovecat<littlefawn@163.com> "Bug fixed"
* panda1986<542638787@qq.com> "Bug fixed"
* YueHonghui<hongf.yue@hotmail.com> "Bug fixed"
...
...
trunk/src/app/srs_app_config.cpp
查看文件 @
26211ab
...
...
@@ -1488,7 +1488,7 @@ int SrsConfig::parse_argv(int& i, char** argv)
void
SrsConfig
::
print_help
(
char
**
argv
)
{
printf
(
RTMP_SIG_SRS_
NAME
" "
RTMP_SIG_SRS_VERSION
" "
RTMP_SIG_SRS_COPYRIGHT
"
\n
"
RTMP_SIG_SRS_
SERVER
" "
RTMP_SIG_SRS_COPYRIGHT
"
\n
"
"License: "
RTMP_SIG_SRS_LICENSE
"
\n
"
"Primary: "
RTMP_SIG_SRS_PRIMARY
"
\n
"
"Authors: "
RTMP_SIG_SRS_AUTHROS
"
\n
"
...
...
trunk/src/app/srs_app_http_conn.cpp
查看文件 @
26211ab
...
...
@@ -279,7 +279,7 @@ int SrsHttpResponseWriter::send_header(char* data, int size)
// set server if not set.
if
(
hdr
->
get
(
"Server"
).
empty
())
{
hdr
->
set
(
"Server"
,
RTMP_SIG_SRS_
KEY
"/"
RTMP_SIG_SRS_VERSION
);
hdr
->
set
(
"Server"
,
RTMP_SIG_SRS_
SERVER
);
}
// chunked encoding
...
...
trunk/src/core/srs_core.hpp
查看文件 @
26211ab
...
...
@@ -33,22 +33,27 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define VERSION_MINOR 0
#define VERSION_REVISION 206
// server info.
// generated by configure, only macros.
#include <srs_auto_headers.hpp>
// provider info.
#define RTMP_SIG_SRS_KEY "SRS"
#define RTMP_SIG_SRS_CODE "ZhouGuowen"
#define RTMP_SIG_SRS_ROLE "origin/edge server"
#define RTMP_SIG_SRS_AUTHROS "winlin,wenjie.zhao"
// contact info.
#define RTMP_SIG_SRS_WEB "http://ossrs.net"
#define RTMP_SIG_SRS_EMAIL "winlin@vip.126.com"
// debug info.
#define RTMP_SIG_SRS_ROLE "cluster"
#define RTMP_SIG_SRS_NAME RTMP_SIG_SRS_KEY"(Simple RTMP Server)"
#define RTMP_SIG_SRS_URL_SHORT "github.com/ossrs/srs"
#define RTMP_SIG_SRS_URL "https://"RTMP_SIG_SRS_URL_SHORT
#define RTMP_SIG_SRS_WEB "http://ossrs.net"
#define RTMP_SIG_SRS_EMAIL "winlin@vip.126.com"
#define RTMP_SIG_SRS_LICENSE "The MIT License (MIT)"
#define RTMP_SIG_SRS_COPYRIGHT "Copyright (c) 2013-2015 SRS(ossrs)"
#define RTMP_SIG_SRS_PRIMARY "SRS/"VERSION_STABLE_BRANCH
#define RTMP_SIG_SRS_AUTHROS "winlin,wenjie.zhao"
#define RTMP_SIG_SRS_PRIMARY RTMP_SIG_SRS_KEY"/"VERSION_STABLE_BRANCH
#define RTMP_SIG_SRS_CONTRIBUTORS_URL RTMP_SIG_SRS_URL"/blob/master/AUTHORS.txt"
#define RTMP_SIG_SRS_HANDSHAKE RTMP_SIG_SRS_KEY"("RTMP_SIG_SRS_VERSION")"
#define RTMP_SIG_SRS_RELEASE RTMP_SIG_SRS_URL"/tree/
1
.0release"
#define RTMP_SIG_SRS_RELEASE RTMP_SIG_SRS_URL"/tree/
"VERSION_STABLE_BRANCH"
.0release"
#define RTMP_SIG_SRS_ISSUES(id) RTMP_SIG_SRS_URL"/issues/"#id
#define RTMP_SIG_SRS_VERSION SRS_XSTR(VERSION_MAJOR)"."SRS_XSTR(VERSION_MINOR)"."SRS_XSTR(VERSION_REVISION)
#define RTMP_SIG_SRS_SERVER RTMP_SIG_SRS_KEY"/"RTMP_SIG_SRS_VERSION"("RTMP_SIG_SRS_CODE")"
...
...
@@ -90,8 +95,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <stddef.h>
#include <sys/types.h>
// generated by configure.
#include <srs_auto_headers.hpp>
// important performance options.
#include <srs_core_performance.hpp>
...
...
trunk/src/kernel/srs_kernel_utility.cpp
查看文件 @
26211ab
...
...
@@ -289,6 +289,16 @@ bool srs_string_contains(string str, string flag)
return
str
.
find
(
flag
)
!=
string
::
npos
;
}
bool
srs_string_contains
(
string
str
,
string
flag0
,
string
flag1
)
{
return
str
.
find
(
flag0
)
!=
string
::
npos
||
str
.
find
(
flag1
)
!=
string
::
npos
;
}
bool
srs_string_contains
(
string
str
,
string
flag0
,
string
flag1
,
string
flag2
)
{
return
str
.
find
(
flag0
)
!=
string
::
npos
||
str
.
find
(
flag1
)
!=
string
::
npos
||
str
.
find
(
flag2
)
!=
string
::
npos
;
}
int
srs_do_create_dir_recursively
(
string
dir
)
{
int
ret
=
ERROR_SUCCESS
;
...
...
trunk/src/kernel/srs_kernel_utility.hpp
查看文件 @
26211ab
...
...
@@ -70,6 +70,8 @@ extern bool srs_string_starts_with(std::string str, std::string flag);
extern
bool
srs_string_starts_with
(
std
::
string
str
,
std
::
string
flag0
,
std
::
string
flag1
);
// whether string contains with
extern
bool
srs_string_contains
(
std
::
string
str
,
std
::
string
flag
);
extern
bool
srs_string_contains
(
std
::
string
str
,
std
::
string
flag0
,
std
::
string
flag1
);
extern
bool
srs_string_contains
(
std
::
string
str
,
std
::
string
flag0
,
std
::
string
flag1
,
std
::
string
flag2
);
// create dir recursively
extern
int
srs_create_dir_recursively
(
std
::
string
dir
);
...
...
trunk/src/main/srs_main_server.cpp
查看文件 @
26211ab
...
...
@@ -248,6 +248,9 @@ void check_macro_features()
int
main
(
int
argc
,
char
**
argv
)
{
int
ret
=
ERROR_SUCCESS
;
// first hello message.
srs_trace
(
RTMP_SIG_SRS_SERVER
);
// TODO: support both little and big endian.
srs_assert
(
srs_is_little_endian
());
...
...
@@ -290,7 +293,7 @@ int main(int argc, char** argv)
return
ret
;
}
srs_trace
(
"srs(ossrs) "
RTMP_SIG_SRS_VERSION
);
srs_trace
(
RTMP_SIG_SRS_SERVER
", stable is "
RTMP_SIG_SRS_PRIMARY
);
srs_trace
(
"license: "
RTMP_SIG_SRS_LICENSE
", "
RTMP_SIG_SRS_COPYRIGHT
);
srs_trace
(
"primary/master: "
RTMP_SIG_SRS_PRIMARY
);
srs_trace
(
"authors: "
RTMP_SIG_SRS_AUTHROS
);
...
...
请
注册
或
登录
后发表评论