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 come I get address already in use from bind()?
How do I get the port number for a given service?
After the chroot(), calls to socket() are failing. Why?
What's the difference between impact sockets and regular sockets?
How can I tell when a socket is closed on the other end?
How to find other end of unix socket connection?
Are sockets files?
What is a socket api?
What is the function of socket?
What is socket address with example?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
Where can a get a library for programming sockets?