How can I read ICMP errors from connected UDP sockets?
Answer / 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 |
How can I read ICMP errors from connected UDP sockets?
Are sockets files?
How many sockets can a cpu have?
What is difference between socket () and serversocket () class?
Why do we need socket programming?
Where is the socket located?
How does a socket work?
How come select says there is data, but read returns zero?
What is active unix domain sockets?
When should I use shutdown()?
Where can a get a library for programming sockets?
What are the pros/cons of select(), non-blocking I/O and SIGIO?