...
Question 2936 – Teaching Aptitude
March 9, 2024
Question 15315 – DSSSB PGT 2021
March 10, 2024
Question 2936 – Teaching Aptitude
March 9, 2024
Question 15315 – DSSSB PGT 2021
March 10, 2024

Question 8640 – Computer-Networks

Which one of the following socket API functions converts an unconnected active TCP socket into a passive socket?

Correct Answer: C

Question 68 Explanation: 
(a) The connect function is used by a TCP client to establish a connection with a TCP server.
(b) The bind function assigns a local protocol address to a socket. With the Internet protocols, the protocol address is the combination of either a 32-bit IPv4 address or a 128-bit IPv6 address, along with a 16-bit TCP or UDP port number.
(c) The listen function converts an unconnected socket into a passive socket, indicating that the kernel should accept incoming connection requests directed to this socket.
(d) The accept function is called by a TCP server to return the next completed connection from the front of the completed connection queue. If the completed connection queue is empty, the process is put to sleep (assuming the default of a blocking socket).

A
connect
B
bind
C
listen
D
accept
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!!