Font Size: a A A

Research And Realization Of Net Engine Of Online Game Server

Posted on:2009-11-05Degree:MasterType:Thesis
Country:ChinaCandidate:R B WangFull Text:PDF
GTID:2178360272470459Subject:Software engineering
Abstract/Summary:PDF Full Text Request
The paper at the background of online game server's development, provides a practical method in design and development of online game server, in which the IOCP mechanism provided by the windows operating system has been used.Firstly, it introduced the history of the online game development, the online game classification, and the critical technique for developing network engine of online game server, such as the IOCP mechanism, the multi-thread technology and the transport protocols and so on. And then following section we will present overall architecture of network engine of online game server-side and its implementation. The whole network engine is divided into three layers, included the highly effective receiving and dispatching layer, the highly effective processing layer and the business logic processing layer. The highly effective receiving and dispatching layer uses the IOCP mechanism which is provided by the windows operating system to design and implement, it can process the massive user's concurrent connection and highly effective receiving and transmitting the network data. The highly effective processing layer uses many kinds of threads to process network data effectively. There are three types of thread: the unpacking thread, which uses the cycle buffer split the physical data package into the logic data package one by one, the logical processing thread, which processes the logic data package and provide the result to the business logic processing layer, and the transmission thread, which delivers the transmitting data after encryption on the IOCP port. The business logic processing layer mainly provides the interfaces of the network engine.Finally, Paper gives the implementation of a Chinese chess game server which is based on this network engine, and tests the performance of the server. The test result shows this network engine is stable and efficient in handling with the massive users concurrent connections.
Keywords/Search Tags:IOCP, Online Games, Network engine, Server, Cycle Buffer
PDF Full Text Request
Related items