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 many socket connections can a server handle?
Where is the socket located?
What is the purpose of socket?
How can I set the timeout for the connect() system call?
Is a socket a file?
Can a single socket port be used for multiple applications?
Why do we need socket programming?
How can I tell when a socket is closed on the other end?
How do unix sockets work?
Why do we need sockets?
Is socket a hardware or software?
What is socket address?
What is the difference between read() and recv()?
Can a socket have multiple ports?
Are sockets files?