Subject: Blocking UDP sockets?
To: None <netbsd-help@netbsd.org>
From: sudog <sudog@sudog.com>
List: netbsd-help
Date: 11/01/2001 17:12:55
select() doesn't currently give me an option to have it wait until a
certain number of bytes can be written to a socket, so during fast
UDP-type transfers, I (often!) get ENOBUF errors claiming that the system
has run out of buffer space.
The only way I've seen around this is to wait a moment and try again a few
microseconds later. The problem with this operation is, of course, that
it's horrible and ugly and difficult to implement in application-space.
What's the Right Way to send out data over UDP as fast as the interface
allows it without getting into resource starvation? Is there some way to
make a datagram socket blocking?
Thanks for your help,
Marc Tooley
sudog@sudog.com