GATE CSE 2017 Session 2 Q28: Connected UDP sockets: multiple peers and calling connect again
- Computer Networks
- 1 mark
- MCQ
- −1/3 if wrong
Syllabus topic: TCP: flow control and congestion control; socket API
Question
Consider socket API on a Linux machine that supports connected UDP sockets. A connected UDP socket is a UDP socket on which connect function has already been called. Which of the following statements is/are CORRECT?
I. A connected UDP socket can be used to communicate with multiple peers simultaneously. II. A process can successfully call connect function again for an already connected UDP socket.
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: B (official GATE 2017 final answer key)
Concept used: Calling connect on a UDP socket fixes a single default peer; it can be called again to change or remove that peer.
First step: Recall what connect does for a UDP socket: it records one remote address and filters datagrams to that peer.
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on TCP: flow control and congestion control; socket API
Every PYQ on this topic →Share this question
Source: official GATE 2017 Session 2 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Computer Networks PYQs
- 2026 Session 1 · Q18True statement about TCP connection setup and closing
- 2026 Session 1 · Q19HTTP 1.1 persistent connections and pipelining
- 2026 Session 1 · Q44When segment 2000 is sent under TCP slow start
- 2026 Session 1 · Q45Minimum sliding window size for full link utilisation
- 2026 Session 1 · Q56Valid CIDR blocks for 6000 addresses inside 202.16.0.0/15
- 2026 Session 2 · Q21File transfer time over three links of different bandwidth