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 is socket programming in java?
What is a socket connection?
How can I write a multi-homed server?
Can multiple sockets use the same port?
What is the difference between SO_REUSEADDR and SO_REUSEPORT?
Is tcp or unix socket faster?
What is the purpose of socket?
What is difference between socket and websocket?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
What are the types of sockets?
How does unix socket work?
What is active unix domain sockets?
How can I force a socket to send the data in its buffer?
Can multiple clients connect to same socket?
What is a socket address?