...
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.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!