GATE 2017 CS (CS2) – Question 28
Linux supports connected UDP sockets, on which connect has already been called. Which hold? I: One connected UDP socket communicates with multiple peers simultaneously. II: A process can successfully call connect again on an already connected UDP socket.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) II only
Explanation
UDP connect sets a default peer and filters incoming datagrams to that peer, rather than establishing a TCP-style connection. The socket is associated with one peer at a time, so I is false. Calling connect again can change that association, making II true. Thus B.
More TCP: Flow Control, Congestion Control, Socket API questions
- GATE 2012 CS (CS1) Q32
- GATE 2013 CS (CS1) Q22
- GATE 2015 CS (CS2) Q33
- GATE 2015 CS (CS2) Q38
- GATE 2015 CS (CS3) Q19
- GATE 2021 CS (CS2) Q17
All TCP: Flow Control, Congestion Control, Socket API questions →