yaoweibin/nginx_tcp_proxy_module — pull request #86 by chobits (2014-01-24 09:06:49+00:00)
Title: added marco ngx_tcp_cycle_get_module_main_conf

If developer writes a tcp module and defines ngx_module_t:init_module field,
this macro will be useful to get main conf of his tcp module from cycle.

struct nginx_module_s {
...
ngx_int_t (*init_module)(ngx_cycle_t *cycle);
...
}

Note that http module has a similar macro (ngx_http_cycle_get_module_main_conf).