Why should I use, or not use, MSG_CONFIRM?

You should only set the flag if the datagram you’re sending is a direct response to a datagram you just received from the same peer.

If you’re sending an initial request, or sending a datagram in response to some other event (like user input, or a timeout) then you should not set the MSG_CONFIRM flag.

Leave a Comment