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 |
What are the pros/cons of select(), non-blocking I/O and SIGIO?
What is Mac, and how is it different from PC? Which one is better for professional users, and why
1 Answers Evolving Systems, IBM,
Whats the difference between select() and poll()?
Explain the TIME_WAIT state.
What is difference between socket () and serversocket () class?
Why do I get EPROTO from read()?
What is a socket api?
Why do we need sockets?
What is sae socket?
How do I convert a string into an internet address?
How can I write a multi-homed server?
How can I be sure that UDP messages are received in order?