How can I read ICMP errors from connected UDP sockets?
Answer Posted / chaitanya
If the target machine discards the message because there is no process reading on the requested port number, it sends an ICMP message to your machine which will cause the next system call on the socket to return ECONNREFUSED. Since delivery of ICMP messages is not guarenteed you may not recieve this notification on the first transaction.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is socket address with example?
What does af mean in sockets?
How does a socket work?
What is difference between socket and websocket?
How can I write a multi-homed server?
What is a sae socket?
What is the difference between read() and recv()?
Is socket a hardware or software?
Can a single socket port be used for multiple applications?
How many sockets can a port have?
What's the difference between impact sockets and regular sockets?
What are the types of sockets?
What is the difference between a socket and a port?
How to find other end of unix socket connection?
Is a socket a file?