ngx_rtmp_block
ngx_rtmp_add_ports
addr.ctx=listen.ctx
初始化connection
NGX_RTMP_CONNECT
find application & set app_conf
connection和session绑定
read-handler=ngx_rtmp_recv,write-handler=ngx_rtmp_send
publish=1
publish=0
ngx_rtmp_init_connection
s=ngx_rtmp_init_session
s.srv_conf=addr_conf.ctx.srv_conf
ngx_rtmp_fire_event
ngx_rtmp_cmd_connect
s.app_conf=cacfp.app_conf
ngx_rtmp_handshake_done
ngx_rtmp_cycle
ngx_rtmp_recv
ngx_rtmp_receive_message
ngx_rtmp_amf_message_handler
ngx_rtmp_cmd_publish_init
ngx_rtmp_cmd_play_init
ngx_rtmp_live_publish
ngx_rtmp_live_play
ngx_rtmp_live_join
ctx
next
stream
next
stream
stream
next
ctx
next
next
next
ctx
next
next
next
next
live_stream_a
live_ctx_a1
live_ctx_a2
live_ctx_a3
live_stream_b
live_ctx_b1
live_ctx_b2
live_ctx_b3
live_stream_c
live_ctx_c1
live_ctx_c2
live_ctx_c3
live_stream_n-1
live_stream_n