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 |
Are sockets files?
How come select says there is data, but read returns zero?
What is active unix domain sockets?
Why do I get EPROTO from read()?
When should I use shutdown()?
After the chroot(), calls to socket() are failing. Why?
What is a socket file?
What is Mac, and how is it different from PC? Which one is better for professional users, and why
1 Answers Evolving Systems, IBM,
What is af_inet in socket?
Why does connect() succeed even before my server did an accept()?
How do I properly close a socket?
What is a socket connection?