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 |
When will my application receive SIGPIPE?
Why do I get connection refused when the server is not running?
Why do I get EPROTO from read()?
Is a socket a file?
What's the difference between impact sockets and regular sockets?
Why sockets are used?
How do I convert a string into an internet address?
Can a single socket port be used for multiple applications?
How do I properly close a socket?
How does unix socket work?
What exactly does SO_KEEPALIVE do?
How are unix domain sockets implemented?