Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Not getting WSAECONNRESET when calling sendto on unreachable port

47 views
Skip to first unread message

Andy

unread,
Oct 13, 2011, 5:02:54 PM10/13/11
to
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.


0 new messages