Computer-Networks
August 29, 2024
Computer-Networks
August 29, 2024
Computer-Networks
August 29, 2024
Computer-Networks
August 29, 2024

Sockets

Question 2
Which of the following – client or server or both – does an active or passive open of
sockets?
A
Both can do passive open
B
Both can do active open
C
Clients can do only passive open
D
Servers can do only passive open
Question 2 Explanation: 
A passive open is the creation of a listening socket, to accept incoming connections. It uses socket(), bind(), listen(), followed by an accept() loop. An active open is the creation of a connection to a listening port by a client.
Hence servers can only do passive opens.
Correct Answer: D
Question 2 Explanation: 
A passive open is the creation of a listening socket, to accept incoming connections. It uses socket(), bind(), listen(), followed by an accept() loop. An active open is the creation of a connection to a listening port by a client.
Hence servers can only do passive opens.

Leave a Reply

Your email address will not be published. Required fields are marked *