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 is a socket created?
Why do I keep getting EINTR from the socket calls?
Explain the TIME_WAIT state.
of the socket? Does doing a connect() call affect the receive behaviour?
What is a socket address?
What pieces of information make up a socket?
How many sockets can a port have?
What is the difference between a socket and a port?
What is the difference between connected and unconnected sockets?
What is a socket file?
What is socket programming in java?
What is with the second parameter in bind()?