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
How many sockets can a cpu have?
How can I force a socket to send the data in its buffer?
How do I use TCP_NODELAY?
How to find other end of unix socket connection?
How many sockets can a port have?
How can I tell when a socket is closed on the other end?
How does a socket work?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
Whats the difference between select() and poll()?
Why does the sockets buffer fill up sooner than expected?
Are sockets files?
What is socket address?
What is difference between socket and websocket?
Can a single socket port be used for multiple applications?
What's better 6pt or 12pt sockets?