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?



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

Answer / 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

More Unix Socket Programming Interview Questions

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?

0 Answers  


Is tcp or unix socket faster?

0 Answers  


Why do I get EPROTO from read()?

0 Answers  


How can my client work through a firewall/proxy server?

1 Answers  


Why do I get connection refused when the server is not running?

1 Answers  


system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?

0 Answers  


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

0 Answers  


What pieces of information make up a socket?

0 Answers  


Can multiple clients connect to same socket?

0 Answers  


What is a socket file?

0 Answers  


What is active unix domain sockets?

0 Answers  


How should I choose a port number for my server?

1 Answers  


Categories