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's the difference between a socket and a port?
Why do I get EPROTO from read()?
Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function?
What is a deep well socket?
Is tcp or unix socket faster?
Why do we need sockets?
What's the difference between impact sockets and regular sockets?
What is a socket set used for?
What is a socket address?
What is af_inet in socket?
What's better 6pt or 12pt sockets?
Why does the sockets buffer fill up sooner than expected?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
Can multiple sockets use the same port?
What is socket programming in java?