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?
How is a socket created?
What is the difference between connected and unconnected sockets?
Is a socket a file?
What is a socket address?
How does unix socket work?
Are unix sockets faster than tcp?
How do I get the port number for a given service?
How come only the first part of my datagram is getting through?
What is active unix domain sockets?
How can I read ICMP errors from connected UDP sockets?
How can I tell when a socket is closed on the other end?