I have a non-block UDP client socket, I bind the socket to the local
interface and then call "sendto" to send packet to a remote peer that
took the port down. But the "sendto" always succeeds
with the return value that is the number of bytes sent, not ICMP port
unreachable message
(WSAECONNRESET or other), from the wireshark, I can see the ICMP port
unreachable message was sent back. But the "sendto" always succeeds.
Any
ideas, TIA.