[SOLVED] Re: other services ok, ftp not (was 1.5.11 - tcp problems)

Brian Dessent brian@dessent.net
Thu Oct 14 08:08:00 GMT 2004


Carlo Florendo wrote:

> On a curious note, why do the inetutils  apps like ftp, telnet, etc.
> still use getservbyname() and the other getserv  functions when, as you
> said,
> these apps could just have the port and protocol hardcoded or specified
> in a config file?

As far as I know that traces back to the original TCP/IP networking code
in unix, 4.2BSD circa 1983 from what a quick google shows.  Back then
things were a lot simpler and I suppose it was more straightforward to
have one config file that defined all the services the box was running
and what ports they were to listen on, and to have each daemon query
that file through getservbyname().  As far as I know the tools in
inetutils are the direct descendents of the original BSD commands from
way back, so the code still uses those methods.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list