Sockets

Question 1
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 1 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.
There is 1 question to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access