Subject: Re: FIONWRITE proposal
To: Bill Studenmund <wrstuden@netbsd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 10/13/2004 16:38:18
--Apple-Mail-4--855585244
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Oct 13, 2004, at 4:11 PM, Bill Studenmund wrote:

> I want this call because I have an application which needs to do
> scheduling flow control in userland. I can't just depend on a 
> non-blocking
> socket as the protocol I'm using deals with requests (protocol blocks 
> or
> PDUs, etc.). So once you start sending a request, you have to finish 
> it.
> For some things, I'd like to be able to make a decision about sending
> before I commit to sending the specific PDU.
>
> Thus this ioctl.
>
> Thoughts?

I would add a note in the manual page along the lines of "If you want 
to use this to implement application-level flow control, you need to 
first know how large the outbound buffer is", e.g. the send buffer on a 
socket (which you can query with getsockopt(2)).

Other than that, this looks great!

         -- Jason R. Thorpe <thorpej@shagadelic.org>


--Apple-Mail-4--855585244
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFBbbxqOpVKkaBm8XkRAm6wAJ9xyUY1u8+C3wpweOSkccgsTbU6EACgonCX
vTAPcXO1GtgTjlFkismEWTA=
=ziUP
-----END PGP SIGNATURE-----

--Apple-Mail-4--855585244--