Subject: Re: sendto() and ENOBUFS question..
To: None <sudog@sudog.com>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: tech-net
Date: 05/14/2002 14:20:07
In message <20020514211210.PEPU3582.priv-edtnes11-hme0.telusplanet.net@
there>sudog writes:

>
>I am writing a high-performance UDP-based networking system and while I've 
>written a kludgy solution, I have the nagging feeling I'm not doing somethi
>ng 
>'properly'.

[... application-level flow control]

>I realize that an exponential back-off is "the right way to do it" but..  i
>s 
>there another way?

You could use setsockopt() juggle the low watermark once you decide
you've sent "too much".

See man 4 setsockopt, SO_SNDLOWAT, SO_RCVLOWAT.