Unix Socket Programming Question:

Download Job Interview Questions and Answers PDF

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

Unix Socket Programming Interview Question
Unix Socket Programming Interview Question

Answer:

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.

Download Unix Socket Programming Interview Questions And Answers PDF

Previous QuestionNext Question
How can I be sure that a UDP message is received?When should I use UDP instead of TCP?