Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] UDP recv error handling
From: Bjorn Reese (breese_at_[hidden])
Date: 2018-12-01 15:34:17


On 11/22/18 3:44 PM, Klebsch, Mario via Boost-users wrote:

> Are there any recommendations on how to decide, whether the receive
> callback function should re-initiate a receive operation after a receive
> error or not?

Unlike TCP, UDP does not establish a connection. By default you will not
receive any network errors on a UDP socket. You have to call connect()
on the socket in order to receive (ICMP) error messages, but this has
other implications.

With UDP it is more common to rely on application layer error messages
and/or timeouts.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net