Source: UNIX Network Programming by W. Richard Stevens.
A typical scenario for this daemon:
ftp 21/tcp telnet 23/tcp tftp 69/udp login 513/tcp
Both the service-name (such as telnet) and the protocol from the inetd configuration file are passed as arguments to the library function getservbyname, to locate the correct port number for the bind. (We describe the getservbyname function in Section 8.2.)