I am acquainting with BSD sockets, and flicking through the man page of sendto
, I bumped into MSG_CONFIRM
flag, which is quite mysterious to me at
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.