of the socket? Does doing a connect() call affect the receive behaviour?
Answer Posted / 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 |
Post New Answer View All Answers
What are the pros/cons of select(), non-blocking I/O and SIGIO?
Why does the sockets buffer fill up sooner than expected?
Can a single socket port be used for multiple applications?
How can I set the timeout for the connect() system call?
What exactly is a socket?
What is the difference between read() and recv()?
What's the difference between impact sockets and regular sockets?
How many sockets can a cpu have?
How does a socket work?
Why does it take so long to detect that the peer died?
Are sockets files?
What is the difference between a socket and a port?
How can I write a multi-homed server?
What pieces of information make up a socket?
Why do we need sockets?