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
How can I tell when a socket is closed on the other end?
Whats the difference between select() and poll()?
Are unix sockets faster than tcp?
What's the difference between a socket and a port?
How many sockets can a port have?
How does a socket work?
Is socket a hardware or software?
Is tcp or unix socket faster?
How do I convert a string into an internet address?
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?
Can multiple sockets use the same port?
What is a socket connection?
How can I write a multi-homed server?
Why do we need socket programming?
What is active unix domain sockets?