nerdexam
EC-Council

312-92 · Question #26

Harold is writing a client-side socket program that will create a TCP connection to a remote server to retrieve data. What function should Harold use to create this connection?

The correct answer is D. SOCK_STREAM. See the full explanation below for the reasoning.

Question

Harold is writing a client-side socket program that will create a TCP connection to a remote server to retrieve data. What function should Harold use to create this connection?

Options

  • ASOCK_SRVADR
  • BSOCK_TCP
  • CSOCK_DGRAM
  • DSOCK_STREAM

How the community answered

(61 responses)
  • A
    13% (8)
  • B
    3% (2)
  • C
    8% (5)
  • D
    75% (46)

Community Discussion

No community discussion yet for this question.

Full 312-92 Practice