Reputation: 688
The handler sometimes gives an error after the remote UDP socket closes, the error is --> "No connection could be made because the target machine actively refused it".
My question is: isn't UDP connection-less ? does it care whatever on the remote side ?
btw, I got this on Windows 7.
Upvotes: 1
Views: 569
Reputation: 51871
UDP is a connectionless protocol.
The confusing error message is the result of asio
having to provide portable errors. Some context is loss when having to go from platform specific errors to portable errors. In this case, asio
receives ERROR_PORT_UNREACHABLE
and maps it to boost::asio::error::connection_refused
.
Upvotes: 3