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

How many socket connections can a server handle?

861


Where is the socket located?

895


What is the purpose of socket?

917


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

1512


Is a socket a file?

864


Can a single socket port be used for multiple applications?

889


Why do we need socket programming?

872


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

1348


How do unix sockets work?

860


Why do we need sockets?

832


Is socket a hardware or software?

929


What is socket address?

1022


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

1970


Can a socket have multiple ports?

873


Are sockets files?

878