Welcome! Log In Create A New Profile

Advanced

ngx_conf_handler

nn hust
December 31, 2010 03:48AM
I am confused by the multi dimensions pointer of the module configure
structure

if (cmd->type & NGX_DIRECT_CONF) {
conf = ((void **) cf->ctx)[ngx_modules[i]->index];

} else if (cmd->type & NGX_MAIN_CONF) {
conf = &(((void **) cf->ctx)[ngx_modules[i]->index]);

} else if (cf->ctx) {
confp = *(void **) ((char *) cf->ctx + cmd->conf);

if (confp) {
conf = confp[ngx_modules[i]->ctx_index];
}
}

rv = cmd->set(cf, cmd, conf);
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

ngx_conf_handler

nn hust 2405 December 31, 2010 03:48AM

Re: ngx_conf_handler Attachments

eagle sbc 857 December 31, 2010 06:46AM

Re: ngx_conf_handler

nn hust 1116 January 01, 2011 11:34PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 136
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready