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 do I use TCP_NODELAY?

0 Answers  


How is a socket created?

0 Answers  


What is the difference between connected and unconnected sockets?

1 Answers  


Is a socket a file?

0 Answers  


What is a socket address?

0 Answers  






How does unix socket work?

0 Answers  


Are unix sockets faster than tcp?

0 Answers  


How do I get the port number for a given service?

1 Answers  


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

1 Answers  


What is active unix domain sockets?

0 Answers  


How can I read ICMP errors from connected UDP sockets?

1 Answers  


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

0 Answers  


Categories