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-03-02 13:07:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4f91cae377b4195e39aff5408d72dd48d04562e3
4f91cae3
1 parent
76f37baa
srs-librtmp: add complex handshake.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
19 行增加
和
1 行删除
trunk/src/libs/srs_librtmp.cpp
trunk/src/libs/srs_librtmp.cpp
查看文件 @
4f91cae
...
...
@@ -183,7 +183,25 @@ int srs_complex_handshake(srs_rtmp_t rtmp)
return
ERROR_RTMP_HS_SSL_REQUIRE
;
#endif
return
ERROR_SUCCESS
;
int
ret
=
ERROR_SUCCESS
;
srs_assert
(
rtmp
!=
NULL
);
Context
*
context
=
(
Context
*
)
rtmp
;
// parse uri, resolve host, connect to server:port
if
((
ret
=
srs_librtmp_context_connect
(
context
))
!=
ERROR_SUCCESS
)
{
return
ret
;
}
// complex handshake
srs_freep
(
context
->
rtmp
);
context
->
rtmp
=
new
SrsRtmpClient
(
context
->
skt
);
if
((
ret
=
context
->
rtmp
->
complex_handshake
())
!=
ERROR_SUCCESS
)
{
return
ret
;
}
return
ret
;
}
int
srs_connect_app
(
srs_rtmp_t
rtmp
)
...
...
请
注册
或
登录
后发表评论