RE: socket: setting SO_SNDBUF

From: David Schwartz (davids@webmaster.com)
Date: Fri Jul 07 2000 - 07:07:47 EST


> If you don't attach some semantics to SO_SNDBUF even if there are no
> standards, you basically make it a completely useless call, since nobody
> can know what value you are supposed to give.

        That's not the Linux's fault.

> If it was a COMPLETELY meaningless number, why did you bother fudging it
> on set ? (yes, I know, existing programs. Don't they deserve the same
> courtesy for get ?)

        It was necessary to fudge it for set to preserve existing programs.

> So why not end this recuring thread by just fudging the get by the same
> factor as set ? It still remains an ill-defined number, but at least
> there will be consistency between in and out.

        Because right now, the value you get actually means something. There is no
sense in deliberately returning a meaningless number.

        DS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:20 EST