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?

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


Please Help Members By Posting Answers For Below Questions

How many sockets can a cpu have?

847


How can I force a socket to send the data in its buffer?

1621


How do I use TCP_NODELAY?

1562


How to find other end of unix socket connection?

895


How many sockets can a port have?

868


How can I tell when a socket is closed on the other end?

1349


How does a socket work?

877


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

1366


Whats the difference between select() and poll()?

1654


Why does the sockets buffer fill up sooner than expected?

1351


Are sockets files?

885


What is socket address?

1029


What is difference between socket and websocket?

908


Can a single socket port be used for multiple applications?

893


What's better 6pt or 12pt sockets?

827