Skip to content
Advertisement

Tag: udp

Under Linux, can recv ever return 0 on UDP?

I’m just cleaning up some code we wrote a while back and noticed that for a udp socket, 0 is being treated as the connection closed. I’m quite sure this was the result of porting the same recv loop from the equivalent tcp version. But it makes me wonder. Can recv return 0 for udp? on tcp it signals the

How can I do congestion control for a UDP protocol?

I have a custom UDP protocol with multiple senders/receivers designed to send large files around as fast as possible. It is client/server based. How can I detect congestion on the LAN to slow the rate of UDP packets being sent? EDIT: please, no comments on the use of UDP whether it’s suitable or not. This protocol uses UDP but reassembles

Advertisement