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 is the function of socket?
How to find other end of unix socket connection?
How can I tell when a socket is closed on the other end?
What exactly is a socket?
What is af_inet in socket?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
Is socket a hardware or software?
What is active unix domain 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?
Can multiple sockets use the same port?
How can I write a multi-homed server?
What is the purpose of socket?
What is the difference between read() and recv()?
What pieces of information make up a socket?
Why sockets are used?