GATE CS 2015, set 2 · Question 33 · Computer Networks · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Identify the correct order in which a server process must invoke the function calls accept, bind, listen, and recv according to UNIX socket API.

  1. (A) listen, accept, bind, recv
  2. (B) bind, listen, accept, recv
  3. (C) bind, accept, listen, recv
  4. (D) accept, listen, bind, recv
Answer

Answer (B)

Answer from the official GATE CS 2015 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes