Epoll mechanism for multi-user concurrent connection under Linux

Source: Internet
Author: User
  1. Linux under the epoll mechanism I no longer elaborated, on-line to find a lot of information and examples, found and I want to function completely different, so I wrote a.

  2. Implementation of the function is that there are many clients connected to the server at the same time, for example, s for the server, there are client A and client B to connect to the server, they need to verify the password, if a first connected to the server, then do not enter a password, b and then connect the server, at this time, b enter the password, the server Can. I give the example, can be implemented: if a is connected to a server without entering a password, b then connect, this is the server can generate a thread for B, confirm B's password, the client's CLIENT_SOCKFD added to the epoll handle.




This article is from the "8628864" blog, please be sure to keep this source http://8638864.blog.51cto.com/8628864/1677544

Epoll mechanism for multi-user concurrent connection under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.