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
Whats the difference between select() and poll()?
How does a socket work?
How can I write a multi-homed server?
Why does the sockets buffer fill up sooner than expected?
Why does it take so long to detect that the peer died?
How many sockets can a port have?
Can a socket have multiple ports?
What is socket address with example?
What's the difference between impact sockets and regular sockets?
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?
Is a socket a file?
What's better 6pt or 12pt sockets?
Can multiple sockets use the same port?
What is socket programming in java?
How do unix sockets work?