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  


Can multiple clients connect to same socket?

0 Answers  


What does af mean in sockets?

0 Answers  


How does unix socket work?

0 Answers  


What is af_inet in socket?

0 Answers  






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

1 Answers  


Are unix sockets faster than tcp?

0 Answers  


Why does the sockets buffer fill up sooner than expected?

0 Answers  


What pieces of information make up a socket?

0 Answers  


How do I get my server to find out the clients address / host- name?

1 Answers  


How to find other end of unix socket connection?

0 Answers  


When will my application receive SIGPIPE?

1 Answers  


Categories