Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can I read ICMP errors from connected UDP sockets?



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

Post New Answer

More Unix Socket Programming Interview Questions

How can I read ICMP errors from connected UDP sockets?

1 Answers  


Are sockets files?

0 Answers  


How many sockets can a cpu have?

0 Answers  


What is difference between socket () and serversocket () class?

0 Answers  


Why do we need socket programming?

0 Answers  


Where is the socket located?

0 Answers  


How does a socket work?

0 Answers  


How come select says there is data, but read returns zero?

1 Answers  


What is active unix domain sockets?

0 Answers  


When should I use shutdown()?

1 Answers   Wipro,


Where can a get a library for programming sockets?

1 Answers  


What are the pros/cons of select(), non-blocking I/O and SIGIO?

0 Answers  


Categories