- 博客(3)
- 收藏
- 关注
原创 ngx_rtmp_cycle函数
void ngx_rtmp_cycle(ngx_rtmp_session_t *s)给连接设置读写处理函数:ngx_rtmp_recv,ngx_rtmp_send。给session设置ping的处理函数:ngx_rtmp_ping。reset ping。这里使用了红黑树。调用ngx_rtmp_recv。
2016-08-23 11:51:53
390
原创 ngx_chain_s结构体
struct ngx_chain_s { ngx_buf_t *buf; ngx_chain_t *next;};struct ngx_buf_s { u_char *pos; u_char *last; off_t file_pos; off_t
2016-08-19 18:26:35
459
原创 nginx-rtmp-module代码学习 - relay
工作需要,学习nginx-rtmp-module代码及直播技术。ngx_rtmp_relay_send_connectrelay时向remote端发送connect命令,如果ctx中没有app name,则从cacf中获取。问题是为什么不在ngx_rtmp_relay_create_connection设置呢?针对动态relay,ngx_rtmp_relay_create_conn
2016-08-17 16:33:51
512
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人