Welcome! Log In Create A New Profile

Advanced

Re: about module constants values.

February 21, 2011 12:24PM
Thanks for sharing, it's also my question while reading the source : )

Peter Leonov Wrote:
-------------------------------------------------------
> Hi, langwan,
>
> On 20.01.2010, at 8:36, langwan wrote:
> >
> > i find these constants, i would like to know the
> laws of the definition of what these values.
> >
> > because i want to add a core module, like
> NGX_HTTP_MODULE.
> >
> > #define NGX_CORE_MODULE 0x45524F43 /*
> "CORE" */
> > #define NGX_CONF_MODULE 0x464E4F43 /*
> "CONF" */
> > #define NGX_EVENT_MODULE 0x544E5645 /*
> "EVNT" */
> > #define NGX_HTTP_MODULE 0x50545448 /*
> "HTTP" */
> > #define NGX_MAIL_MODULE 0x4C49414D
> /* "MAIL" */
>
> The question got the answer:
> > 0x45524F43 /* "CORE" */
>
> 0x45524F43 is a 32-bit integer consists of thees
> four bytes: 0x45, 0x52, 0x4F and 0x43 for thees
> characters 'E' 'R' 'O' 'C' (reversed CORE). The
> comment tells what's encoded in integer ;) This
> means that one can define four chars long module
> type identifier. I think that's enough ;)
>
> Best regards,
> Peter.____________________________________________
> ___
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

about module constants values.

langwan January 20, 2010 12:40AM

Re: about module constants values.

Peter Leonov January 20, 2010 01:02AM

Re: about module constants values.

iComes February 21, 2011 12:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 111
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready