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 are the types of sockets?
Is socket a hardware or software?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
Whats the difference between select() and poll()?
How do I use TCP_NODELAY?
What is difference between socket and websocket?
What is active unix domain sockets?
How can I force a socket to send the data in its buffer?
What's better 6pt or 12pt sockets?
What is the difference between read() and recv()?
How are unix domain sockets implemented?
What's the difference between a socket and a port?
What pieces of information make up a socket?
Can multiple sockets use the same port?
How does unix socket work?