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 are the pros/cons of select(), non-blocking I/O and SIGIO?

1307


Why does the sockets buffer fill up sooner than expected?

1279


Can a single socket port be used for multiple applications?

832


How can I set the timeout for the connect() system call?

1462


What exactly is a socket?

874


What is the difference between read() and recv()?

1898


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

791


How many sockets can a cpu have?

797


How does a socket work?

815


Why does it take so long to detect that the peer died?

1454


Are sockets files?

815


What is the difference between a socket and a port?

822


How can I write a multi-homed server?

1594


What pieces of information make up a socket?

901


Why do we need sockets?

759