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

How come only the first part of my datagram is getting through?

1 Answers  


What is LILO?

2 Answers  


Can a single socket port be used for multiple applications?

0 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  


Where is the socket located?

0 Answers  






How many socket connections can a server handle?

0 Answers  


How would I put my socket in non-blocking mode?

1 Answers  


What is Mac, and how is it different from PC? Which one is better for professional users, and why

1 Answers   Evolving Systems, IBM,


How do I properly close a socket?

1 Answers  


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

0 Answers  


How many sockets can a cpu have?

0 Answers  


How do I use TCP_NODELAY?

0 Answers  


Categories