Re: getservbyport (fwd)

Ingo Molnar (mingo@pc5829.hil.siemens.co.at)
Tue, 14 May 1996 17:16:48 +0200 (MET DST)


On Tue, 14 May 1996, Bartlomiej Czardybon wrote:

> I've got the question: why this produces shit! ?

> if ((serv = getservbyport(23, "tcp")) == NULL) {
^^^^^^^^^ use htons(23)

the man page isnt too explicit about this. (but it's still obvious ...)

-- mingo