Font Size: a A A

Research And Development Of The General Framework Of Network Interaction Application Based On Mobil Internet

Posted on:2017-12-03Degree:MasterType:Thesis
Country:ChinaCandidate:L W XuFull Text:PDF
GTID:2348330518996852Subject:Electronics and Communications Engineering
Abstract/Summary:PDF Full Text Request
In recent years,with the development of mobile terminal technology,the rise of the major Internet Company,the mobile internet is developing rapidly.User ' s improving need for the function and experience of mobile games,the network interactive application will be the mainstream app in the future,therefore,it is important to study the general architecture of a highly efficient and scalable web based interactive application.Based on the current share of the two platforms-Android platform and iOS platform,the paper design and implement a general framework for cross platform network interaction.The universal architecture has a wide range of applicability,which is mainly applied to the application of the network battle game,and it can also be applied to social interaction,role playing(RPG),chess game and so on.This paper firstly introduces the basic content of the development of interactive application architecture,including Socket network programming technology,multi-thread programming technology and thread pool technology,Cocos2dx engine,and the advantages of using Lua scripting language for client development.Based on these technologies,we propose the universal architecture and detailed interactive application system and design the general framework of the mobile network interaction application.This thesis focuses on the design and implementation of the server side,in order to adapt to the growing user ' s need and improve the performance of the mobile web application server,this issue has abandoned the traditional single game server structure,but using a new cluster server architecture,the entire cluster,including the portal server,game server,database server and interactive server.In this paper,the construction of the entire server architecture,the implementation of the underlying communication module,the communication between the cluster server and the expansion of the server cluster are introduced in detail.At the same time,the paper introduces the characteristics and functions of these five types of servers.The cluster server architecture implemented in this paper has good generality.On the one hand,it is reflected in the bottom communication module and the upper layer logic processing,which only needs to modify the game logic processing to add a new function server.On the other hand,it is also reflected in the expansion of the same server.This paper adopts two kinds of load balancing technology.When the existing server is loaded,it can be divided by adding new server.The paper also de,velops the client part for the general framework,and introduces the framework design,the main interface design and the main flow design of the client.The important parts are the client and server communication part and the client's main common module,which includes the wizard system,event distribution system and resource allocation system,etc.So that the developer can use the universal framework for a rapid development,and can put the main focus on the design of the function of the game,can develop a variety of types of network interactive applications.So it better reflects the general nature of the framework.In addition,this paper uses the interactive application architecture and the mobile network to develop a mobile network game to verify the operation effect of the framework,and the server side uses a specific tool to combine the script to carry out concurrent stress test.The performance report of the server is obtained,and the complete function test is carried out for the complete test case of the function design of the major modules of the client.Finally,the architecture has achieved the expected requirements in the aspects of scalability,reliability,versatility,system performance and function.
Keywords/Search Tags:Network Interaction, Cocos2dx-lua, Cluster Server, Load Balancing
PDF Full Text Request
Related items