In message <199908022217.xaa02...@keep.lan.awfulhak.org> Brian Somers writes:
: Yes, but do it the other way 'round - strtol first, if it's not all 
: numeric, getservbyname().

I did it getservbyname first in case there were any legacy services
that were all numbers.  Traditionally, this is hwo things were done
with IP addresses, although a quickie survey shows it to be a mixed
bag.  The biggest reason for not doing getservbyname first is that it
will hang (long timeout) if the databsae behind it goes away.

Warner


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to