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 |
How do I use TCP_NODELAY?
Can multiple clients connect to same socket?
What does af mean in sockets?
How does unix socket work?
What is af_inet in socket?
How come only the first part of my datagram is getting through?
Are unix sockets faster than tcp?
Why does the sockets buffer fill up sooner than expected?
What pieces of information make up a socket?
How do I get my server to find out the clients address / host- name?
How to find other end of unix socket connection?
When will my application receive SIGPIPE?