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-07-08 17:42:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c6c90e26431b238907ac9f63ca74072de0057e45
c6c90e26
1 parent
db9ea4e6
refine code, add comments for stat on_disconnect.
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
0 行删除
trunk/src/app/srs_app_rtmp_conn.cpp
trunk/src/app/srs_app_statistic.hpp
trunk/src/app/srs_app_rtmp_conn.cpp
查看文件 @
c6c90e2
...
...
@@ -206,6 +206,7 @@ int SrsRtmpConn::do_cycle()
}
ret
=
service_cycle
();
http_hooks_on_close
();
SrsStatistic
*
stat
=
SrsStatistic
::
instance
();
stat
->
on_disconnect
(
_srs_context
->
get_id
());
...
...
trunk/src/app/srs_app_statistic.hpp
查看文件 @
c6c90e2
...
...
@@ -161,6 +161,9 @@ public:
virtual
int
on_client
(
int
id
,
SrsRequest
*
req
);
/**
* client disconnect
* @remark the on_disconnect always call, while the on_client is call when
* only got the request object, so the client specified by id maybe not
* exists in stat.
*/
virtual
void
on_disconnect
(
int
id
);
/**
...
...
请
注册
或
登录
后发表评论