Method for realizing on-line communication of 500 thousands of users through completion port technology
暂无分享,去创建一个
The invention belongs to the technical field of computer control, and relates to a method for realizing on-line communication of 500 thousands of users through I/O completion port technology. The method comprises the following steps: a Socket service terminal, actually a communication service terminal of a middle ware, is built according to the IOCP (Input/Output Completion Port) technology; the maximal number of on-line socket clients supported by the Socket service terminal at the same time is Max Connection Number; a read-write memory space is distributed to each socket client, the Socket Client simulation programs are built and connected with an IOCP server for communication; a plurality of Socket Client simulation programs are opened simultaneously so as to simulate the communication between the plurality of Socket Clients and the IOCP Server; and the successful communication of each Socket Client at each time represents an online user, and the required overall time is 8-12 minutes when the 500 thousands of users are counted to be successful in communication. Therefore, the method provided by the invention has the advantages of simple technological process, reliable theory, large information processing amount, high processing speed, good performance and access time conservation, and improves the network utilization efficiency.