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
|