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 个修改的文件
包含
10 行增加
和
6 行删除
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
...
...
@@ -154,14 +154,17 @@ public:
virtual
void
on_stream_close
(
SrsRequest
*
req
);
public
:
/**
* when got a client to publish/play stream,
* @param id, the client srs id.
* @param req, the client request object.
*/
* when got a client to publish/play stream,
* @param id, the client srs id.
* @param req, the client request object.
*/
virtual
int
on_client
(
int
id
,
SrsRequest
*
req
);
/**
* client disconnect
*/
* 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
);
/**
* sample the kbps, add delta bytes of conn.
...
...
请
注册
或
登录
后发表评论