Ads Here

Wednesday, January 10, 2018

Computer Networks 2014(5)

Which one of the following socket API functions converts an unconnected active TCP socket into a passive socket.
(A) connect
(B) bind
(C) listen
(D) accept

Answer: (C)

Explanation: listen() marks the socket referred to by sockfd as a passive socket, that is, as a socket that will be used to accept incoming connection requests using accept().


No comments:

Post a Comment