The recv() function does not return SOCKET_ERROR when an ICMP message for a port unreachable is received because this is considered a normal behavior in networking. When a UDP packet is sent to a port that is not open on the target host or has been filtered by a firewall, the target host responds with an ICMP message of type "Port Unreachable". This behavior is expected and is not considered an error in the transport layer protocol. Therefore, recv() does not treat it as an error condition but rather as a valid response from the host being communicated with.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-24 04:27:15 +0000
Seen: 10 times
Last updated: May 24 '23
How can custom-cli targets be added to the project.json file in Angular using Nx?
How can you steer clear of a target while heading towards a particular location?
Do combined media queries exist for unique viewport sizes?
What does ID2D1HwndRenderTarget::CreateBitmapFromWicBitmap() do?
How can the debug target of the cmake library be configured in Visual Studio?