Which system call is commonly used by a server to wait for incoming connection requests on a TCP socket?

Options

  • A. listen()
  • B. send()
  • C. close()
  • D. recv()
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. listen()

Detailed Explanation

Correct Answer: listen().

The listen() system call places a TCP socket into a passive listening state so that it can accept incoming connection requests from clients.