Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Inactive Publication Date: 2013-05-01
FUJIAN TQ DIGITAL
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Such a communication method is inefficient and the data processing is not timely enough

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method of total-event-driven efficient distributed game server
  • Communication method of total-event-driven efficient distributed game server
  • Communication method of total-event-driven efficient distributed game server

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a communication method of a total-event-driven efficient distributed game server. The game server comprises a gateway server, a master server, a node server, a database server, a global server and an NPC (Non Player Character) server; the communication method comprises the following steps: the NPC server is taken as a thread of the node server; except the gateway server used for receiving client information, in communication parts between the servers adopts an IOCP (Input / Output Control Program), communication between other parts of the servers adopts a socket event, and the communication parts between the threads in the servers adopt array events; and when a while cycle is executed by the communication thread of the server every time, the socket event and the array event are performed simultaneously. According to the invention, by adopting the method of realizing communication of the whole server through a total-event-driven manner and combination of an event socket and the event array, information communication between the servers and between the threads in the servers can be efficiently and timely processed.

Description

【Technical field】 [0001] The invention relates to a network game system, in particular to a communication method using an all-event-driven high-efficiency distributed game server. 【Background technique】 [0002] Currently, online games are becoming increasingly popular. Online games use the Internet as the transmission medium, the game operator's server and the user's computer as the processing terminal, and the game client software as the information interaction window, aiming at entertainment, leisure, communication and virtual achievements, and are quite sustainable. [0003] At the same time, the servers built by game operators are also getting larger and larger. [0004] The existing game server communication methods generally use the method of taking out the data in the logic queue in a while loop (the data in the logic queue generally refers to the data to be sent by the logic layer), and then put these data into the The communication processing queue is sent and pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08H04L29/06
Inventor 刘德建陈宏展王飞云华晓明
Owner FUJIAN TQ DIGITAL