Subject: Re: Proposal: socketfrom()
To: NetBSD Networking Technical Discussion List <tech-net@NetBSD.org>
From: Greg A. Woods <woods@planix.com>
List: tech-net
Date: 07/05/2007 17:58:40
--pgp-sign-Multipart_Thu_Jul__5_17:58:40_2007-1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

At Thu, 5 Jul 2007 20:51:38 +0100 (BST), David Brownlee wrote:
Subject: Re: Proposal: socketfrom()
>=20
>  	It means any library that craetes a socket, including third
>  	party libraries, needs to know about this feature and
>  	specifically code around it.

Or rather that any application making use of the setsockopt_defaults()
facility know about all library routines it uses which could create a
socket and then reset the defaults back to "normal" for the duration of
the library call.....  :-)

(assuming the new defaults would be unworkable for the library call)

Not ideal if those calls are interleaved with socket() or accept() calls
mind you, but perhaps pairs of setsockopt_defaults() would be faster
than many setsockopt() calls and so would still be a win....

--=20
						Greg A. Woods

H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>       Secrets of the Weird <woods@weird.com>

--pgp-sign-Multipart_Thu_Jul__5_17:58:40_2007-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: KYbGREq9BneYp4MwhbfjsipUQl3eO2EO

iQA/AwUBRo1pkGZ9cbd4v/R/EQJeNACcDSVkYomD09b4OhjRGuaAqmmd/9oAoIFn
ixBHQehTgWtLK5NfIBAyrGMW
=I4Pt
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Thu_Jul__5_17:58:40_2007-1--