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)- A13% (8)
- B3% (2)
- C8% (5)
- D75% (46)
Community Discussion
No community discussion yet for this question.