6.2.3.6 listen

The listen function is used for server operations with TCP stream sockets. After calling the listen API, the socket accepts a connection request from a remote host. The listen function causes a SOCKET_MSG_LISTEN event notification to be sent to the host after the socket port is ready to indicate listen operation success or failure.

When a remote peer establishes a connection, a SOCKET_MSG_ACCEPT event notification is sent to the application.