Communication method of total-event-driven efficient distributed game server
A game server, event-driven technology, applied in the field of online game systems, can solve the problems of insufficient data processing and low efficiency, and achieve the effect of timely message communication
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0030] Such as figure 1 As shown, the entire game server is divided into: a gateway server, a main server, a node server, a database server, a global server, and an NPC server. In order to reduce the complexity of development, server configuration and construction, the present invention uses the NPC server as a thread of the node server. In order to increase the number of online users, the node server (also called a logic game server) is divided into multiple node servers according to the map group.
[0031] In order to improve the message response speed between each server and each thread in the server, except for the gateway server used to receive client messages using IOCP, the communication between other parts of the server uses event sockets. , The communication part between internal threads of the server uses the event queue. The processing method for these events is: set the events you want in each while loop of the server's communication thread, and then detect these...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 