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 would I put my socket in non-blocking mode?
How do I send [this] over a socket?
Where can a get a library for programming sockets?
What pieces of information make up a socket?
How many socket connections can a server handle?
How can I listen on more than one port at a time?
What's the difference between a socket and a port?
When should I use shutdown()?
Why does the sockets buffer fill up sooner than expected?
How does a socket work?
What is a socket connection?
What is the purpose of socket?