Font Size: a A A

Research And Realization Of Netgame Server In Linux

Posted on:2010-05-19Degree:MasterType:Thesis
Country:ChinaCandidate:Q GaoFull Text:PDF
GTID:2178360275451367Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
In recent years,with the rapid development of Internet technology,as a favorite entertainment product by the majority of online game players,net game has also a great development.Online game imitate the realize society by its vivid picture,it is a very popular entertainment product.The large number of online games' has reached one hundred thousands of players;a small number of online games have more than one million players.China has already larger netgame companies such as Shenda, Netease.Some internet companies also expand network business,Such as Sohu,Sina, Baidu and so on.Server is an important component of the netgame.It deals with all the messages which are sent by a large number of clients.Net game server's performance,stability, security is becoming increasingly important.This article has done a detailed analysis and research for the server technology,realization.The article first introduced the basic technologies for the server,including c language,C + + language,STL,Multi-threaded programming,design patterns,C + + programming specification,Unix I/O,high-level Round API,network programming, Windows/MFC procedures,encryption algorithm,finding source flaw.ChapterⅢanalyzes server's each layers and its module's design file,detailed introduce the communications layer,message layer,application layer,business layer 's design,and use graphical to demostrate the relationship between the various modules,each module's function and it design schematic.ChapterⅣanalyzes the message layer,business layer and its detailed design file, detailed introduce Net game server's message layer,business layer's design detail, operation of various functions and the main design principle.And analyze the relationship between the various modules's realization,function.ChapterⅤdesigns the function of business layer and the realization of the function,detailed introduce message layer,business layer's code and step for every modules.And make specification for the key code segment. ChapterⅥdesigns the server layer and message layer's test file,and detailed describe the test process and step.Firstly,do unit test for the server layer and message layer;secondly,do the function test for the business layer's module,thirdly,do system integrated test,lastly,do the system performance test and security test.From net game server's general design,detailed design,implementation,test,this article make a comprehensive introduction to net game server's development process under linux.As to the security of data communication,this article use the RC4 algorithm to encrypt the data;as to the efficient process of data,this article use thread pool technology.The server completely use the C + + pattern to develop.In the develop process,use STL to enhance development efficiency.In order to reuse as much as possible,this article use the design pattern knowledge to realize several modules.This make the module and overall structure can be reused easily.
Keywords/Search Tags:server, network programming, multi-threaded, design pattern
PDF Full Text Request
Related items