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-24 17:38:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d267b8fa19c78cbb9af8afc659a5a8c26faf83ad
d267b8fa
1 parent
a7bf4bfd
fix bug for create connection with ip.
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
5 行增加
和
4 行删除
trunk/src/app/srs_app_caster_flv.cpp
trunk/src/app/srs_app_caster_flv.hpp
trunk/src/app/srs_app_caster_flv.cpp
查看文件 @
d267b8f
...
...
@@ -71,7 +71,8 @@ int SrsAppCasterFlv::on_tcp_client(st_netfd_t stfd)
{
int
ret
=
ERROR_SUCCESS
;
SrsHttpConn
*
conn
=
new
SrsDynamicHttpConn
(
this
,
stfd
,
http_mux
);
string
ip
=
srs_get_peer_ip
(
st_netfd_fileno
(
stfd
));
SrsHttpConn
*
conn
=
new
SrsDynamicHttpConn
(
this
,
stfd
,
http_mux
,
ip
);
conns
.
push_back
(
conn
);
if
((
ret
=
conn
->
start
())
!=
ERROR_SUCCESS
)
{
...
...
@@ -115,8 +116,8 @@ int SrsAppCasterFlv::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r)
return
conn
->
proxy
(
w
,
r
,
o
);
}
SrsDynamicHttpConn
::
SrsDynamicHttpConn
(
IConnectionManager
*
cm
,
st_netfd_t
fd
,
SrsHttpServeMux
*
m
)
:
SrsHttpConn
(
cm
,
fd
,
m
)
SrsDynamicHttpConn
::
SrsDynamicHttpConn
(
IConnectionManager
*
cm
,
st_netfd_t
fd
,
SrsHttpServeMux
*
m
,
string
cip
)
:
SrsHttpConn
(
cm
,
fd
,
m
,
cip
)
{
sdk
=
new
SrsSimpleRtmpClient
();
pprint
=
SrsPithyPrint
::
create_caster
();
...
...
trunk/src/app/srs_app_caster_flv.hpp
查看文件 @
d267b8f
...
...
@@ -88,7 +88,7 @@ private:
SrsPithyPrint
*
pprint
;
SrsSimpleRtmpClient
*
sdk
;
public
:
SrsDynamicHttpConn
(
IConnectionManager
*
cm
,
st_netfd_t
fd
,
SrsHttpServeMux
*
m
);
SrsDynamicHttpConn
(
IConnectionManager
*
cm
,
st_netfd_t
fd
,
SrsHttpServeMux
*
m
,
std
::
string
cip
);
virtual
~
SrsDynamicHttpConn
();
public
:
virtual
int
on_got_http_message
(
ISrsHttpMessage
*
msg
);
...
...
请
注册
或
登录
后发表评论