apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Reid" <dr...@jetnet.co.uk>
Subject apr_getservbyname
Date Sun, 19 Nov 2000 12:22:11 GMT
The servent structure returns a proto argument as well as name/port, so
should we be looking to return it as well?  Are we going to abstract out the
protocols as well?  APR_TCP, APR_UDP anyone?

apr_status_t apr_getservbyname(apr_port_t *port, int *proto, const char
*servname);

However, should this be tied to an apr_sockaddr_t?

apr_status_t apr_getservbyname(apr_sockaddr_t *sa, const char *servname);

Also, what should we be doing on a system where getservbyname isn't
available?  Are there any such systems?

david


Mime
View raw message