Re: socket: setting SO_SNDBUF

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Wed May 10 2000 - 20:09:26 EST


> because I would expect following behaviour:
>
> err = getsockopt(s, SOL_SOCKET, SO_SNDBUF, &res1, &len);
> err = setsockopt(s, SOL_SOCKET, SO_SNDBUF, &res1, len);
> err = getsockopt(s, SOL_SOCKET, SO_SNDBUF, &res2, &len);
>
> after that sequence, res1 should be == res2 !
>
> Am I totally wrong?

Nothing in the standards says anything about that being true

-
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 : Mon May 15 2000 - 21:00:17 EST