The listen() call prepares to accept incoming client connections. The BACKLOG macro predefines the number of incoming connection requests that the system accepts before rejecting new ones. This function is the same as listen() in a regular TCP sockets application.
if (listen(sockfd, BACKLOG) == -1) { perror("listen"); goto close; }