What is the role of the 'Listen' function in a socket connection?

Question

Grade: Education Subject: Support
What is the role of the 'Listen' function in a socket connection?
Asked by:
65 Viewed 65 Answers

Answer (65)

Best Answer
(217)
The 'Listen' function in a socket is crucial for establishing a connection. It tells the socket to wait for incoming connections on a specific port. Without a 'Listen' function, a client cannot initiate a connection.