2011年3月1日星期二

Re: Why NGX_SOCKADDRLEN is 512?

On Mar 1, 2011, at 11:59 , speedfirst wrote:

> I think this way would be better:
>
> #if (NGX_HAVE_UNIX_DOMAIN)
> #define NGX_SOCKADDRLEN sizeof(struct sockaddr_un)
> #else
> #define NGX_SOCKADDRLEN sizeof(struct sockaddr_storage)
>

没有评论:

发表评论