Re: [asio-users] error codes of remote hosts on udp socket close
Brought to you by:
chris_kohlhoff
From: Themistoklis B. <th...@ic...> - 2006-12-19 09:44:20
|
Hi Chris, > Presumably you are sending UDP packets to a specific IP address (i.e. > unicast, rather than broadcast). In this case, the remote host may > return an ICMP error packet if there is no socket listening on the > specified port. This ICMP error is propagated back to the application as > an error on the receive operation. > Yes I do unicast, but I am not receiving the ERROR_PORT_UNREACHABLE at a send call error handler to the departed remote host. I am receiving it at a receive (async) call on the local host socket which of course remains open. Thanks for the answer, Themis |