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...

of the socket? Does doing a connect() call affect the receive behaviour?

Answer Posted / chaitanya

Yes, in two ways. First, only datagrams from your "connected peer" are returned. All others arriving at your port are not delivered to you.

But most importantly, a UDP socket must be connected to receive ICMP errors.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference between a socket and a port?

899


Why do I get EPROTO from read()?

1496


Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function?

1486


What is a deep well socket?

981


Is tcp or unix socket faster?

899


Why do we need sockets?

890


What's the difference between impact sockets and regular sockets?

907


What is a socket set used for?

997


What is a socket address?

964


What is af_inet in socket?

876


What's better 6pt or 12pt sockets?

869


Why does the sockets buffer fill up sooner than expected?

1392


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

1408


Can multiple sockets use the same port?

921


What is socket programming in java?

889