In socket programming, which method is used by the server to wait for a client to connect?

Last Updated :
Discuss
Comments

In socket programming, which method is used by the server to wait for a client to connect?


open()

connect()

listen()

accept()

Share your thoughts in the comments