58 Star 431 Fork 129

GVPwinshining / nginx-http-flv-module

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ngx_rtmp_bandwidth.h 584 Bytes
一键复制 编辑 原始数据 按行查看 历史
winshining 提交于 2017-06-25 17:40 . [dev] initial commit.
/*
* Copyright (C) Roman Arutyunyan
*/
#ifndef _NGX_RTMP_BANDWIDTH_H_INCLUDED_
#define _NGX_RTMP_BANDWIDTH_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
/* Bandwidth update interval in seconds */
#define NGX_RTMP_BANDWIDTH_INTERVAL 10
typedef struct {
uint64_t bytes;
uint64_t bandwidth; /* bytes/sec */
time_t intl_end;
uint64_t intl_bytes;
} ngx_rtmp_bandwidth_t;
void ngx_rtmp_update_bandwidth(ngx_rtmp_bandwidth_t *bw, uint32_t bytes);
#endif /* _NGX_RTMP_BANDWIDTH_H_INCLUDED_ */
C
1
https://gitee.com/winshining/nginx-http-flv-module.git
git@gitee.com:winshining/nginx-http-flv-module.git
winshining
nginx-http-flv-module
nginx-http-flv-module
master

搜索帮助