httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jun Kuriyama <kuriy...@imgsrc.co.jp>
Subject Re: apr_sockaddr_t
Date Sat, 11 Nov 2000 05:19:25 GMT
> > the largest UDP or TCP port is 65535, so max string length is 5 decimal
> > digits + terminating '\0'
> 
> Yes, but what about for the named ports?  If we have "telnet\0" that's 7,
> and is that the biggest?  I was thinking of port_str being used for known
> ports as well as string representations (maybe I should change the comment?)
> and I wasn't sure what the longest would be.  I see there is a define of
> NI_MAXSERV at 32, so would 32 be a suitable value and do we want to go that
> large?

I think NI_MAXSERV is appropriate one (if that is defined in target
OS).

NI_MAXSERV and NI_MAXHOST seems to be defined if that OS supports
RFC2553.


-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project

Mime
View raw message