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's better 6pt or 12pt sockets?
Can multiple clients connect to same socket?
How are unix domain sockets implemented?
How to find other end of unix socket connection?
Whats the difference between select() and poll()?
How can I force a socket to send the data in its buffer?
What is difference between socket and websocket?
Why does the sockets buffer fill up sooner than expected?
What is a socket file?
What is active unix domain sockets?
Is socket a hardware or software?
What pieces of information make up a socket?
What is socket address with example?
Can a single socket port be used for multiple applications?
How does a socket work?