TreeviewCopyright © aleen42 all right reserved, powered by aleen42

Listen Back

  • listen to the port, waiting clients to connect
  • based on TCP, there are two queues: one is for already connected clients, and the other is for not connected yet.

method
int listen(int sockfd, int qlen)
parameters
  • sockfd: socket描述符
  • qlen: 偵聽socket能處理的最大併發鏈接數
return value
  • 0: success
  • -1: failure
  • errno: wrong code
Empty Comments
Sign in GitHub

As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.

Notice: This plugin has used Cookie to store your token with an expiration.