netdev
[Top] [All Lists]

Re: How to set the free-buffer-space for which select set a socket writa

To: "Ben Greear" <greearb@xxxxxxxxxxxxxxx>, "linux-net" <linux-net@xxxxxxxxxxxxxxx>, <netdev@xxxxxxxxxxx>, "Andi Kleen" <ak@xxxxxx>
Subject: Re: How to set the free-buffer-space for which select set a socket writable.
From: "James Stevenson" <mail-lists@xxxxxxxx>
Date: Mon, 10 Dec 2001 19:41:15 -0000
References: <3C1507AC.70505@xxxxxxxxxxxxxxx>
Reply-to: "James Stevenson" <mistral@xxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
Hi

you can set the socket buffer size and also you can
find out how much data is in the send / recv Q for the
socket via an ioctl (cannot remember which 1) but i have
seen / used it before

    James


----- Original Message -----
From: "Ben Greear" <greearb@xxxxxxxxxxxxxxx>
To: "linux-net" <linux-net@xxxxxxxxxxxxxxx>; <netdev@xxxxxxxxxxx>; "Andi
Kleen" <ak@xxxxxx>
Sent: Monday, December 10, 2001 7:06 PM
Subject: How to set the free-buffer-space for which select set a socket
writable.


> I'm looking for a way to make select wait for a certain amount of
> free-space in the write queue for UDP (and hopefully, TCP) socket.
>
> For instance, I want to send a 32k UDP packet, and I don't want
> select to tell me the socket is writable when there is only
> 4k of space available (because my resulting sendto of the 32k
> pkt will fail in this case).
>
> Is there a way to do this today?  If not, any interest in
> accepting a patch that would give this functionality if
> I write one up?
>
> Thanks,
> Ben
>
> --
> Ben Greear <greearb@xxxxxxxxxxxxxxx>       <Ben_Greear AT excite.com>
> President of Candela Technologies Inc      http://www.candelatech.com
> ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



<Prev in Thread] Current Thread [Next in Thread>