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
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
How to find other end of unix socket connection?
How many sockets can a cpu have?
How can I tell when a socket is closed on the other end?
What is a socket connection?
Is socket a hardware or software?
Is tcp or unix socket faster?
How does a socket work?
What is the difference between a socket and a port?
How do I use TCP_NODELAY?
How can I force a socket to send the data in its buffer?
What is a deep well socket?
Can a socket have multiple ports?
Are unix sockets faster than tcp?
What is the function of socket?