期刊文献+

基于PHP的socket游戏服务器设计与实现 被引量:3

The architectures of socket game server based on PHP
下载PDF
导出
摘要 近年来网页游戏、手机游戏快速发展,对游戏服务端提出新的要求:架构简单、配置灵活,同时可支持快速开发。文中提出一种架构:服务器底层通讯基于高性能的socket库开发,而游戏逻辑采用成熟的PHP框架开发,游戏逻辑不关心底层细节达到快速高效的目的。文中主要分三层介绍:基础层主要采用libevent和ZeroMQ的API;核心服务层提供网络通讯和数据存储服务;应用层处理游戏内的逻辑。此外,以该架构的游戏服务器已在两款网页游戏开服上百组,性能测试稳定。 Web games, mobile games fast development today, the game server need simplearchitectures, flexible configuationandsupport high-efficiencydevelopment.This paper presents the design of Socket server-based game, usehigh-efficiency PHP framework to develop the game logic , and game logicdon't need to care about the server communication details. This paper mainly describes the system in three parts from the base layer and core layer and application layer. Among them, the base layer is mainly done to pave the way for the subsequent development of pre-module, which consists of data, protocol modules;the core layer provide data communication and data storage;application layer is the base layer on the base, by calling each module server package and handling agreements. In order to improve server performance and speed, at the application layer adds libevent and ZeroMQ two open source model. In this paper, the proposed technology for the server based on the development of a good stability and speed.
作者 王盛林
出处 《电子设计工程》 2016年第20期125-128,共4页 Electronic Design Engineering
关键词 游戏服务器 套接字 libevent ZeroMQ PHP gameserver Socket libevent ZeroMQ
  • 相关文献

参考文献7

  • 1(美)PieterHinens.ZeroMQ:云时代极速消息通信库[M].卢涛,李颖译.北京:电子工业出版社,2015.
  • 2陈俊,黄维平.分布式Memcached在社交游戏中的应用研究[J].电脑知识与技术,2011,7(4):2301-2305. 被引量:4
  • 3Kjetil Raaen,Hard Espeland& HonKvale Stensland.ADemons- tration Of aLoekless,Relaxed Atomicity State Parallel Game Server[D].NorwaySimulaResearchLaboratory,2010.
  • 4(美)PieterHinqens.ZeroMQ:云时代极速消息通信库[M].卢涛.李颖译.北京:电子工业出版社.2015.
  • 5深入理解Nginx[M].陶辉.北京:机械工业出版社.2013.
  • 6(美)W.RichardStevens,(美)BillFenner,(美)AndrewM.Rud-off.Tudoff.UNIX网络编程卷1:套接字联网API[M].3版.北京:人民邮电出版社.2010.
  • 7Redis设计与实gEM].黄健宏.北京:机械工业出版社.2014.

二级参考文献7

  • 1Ping Ng.A concept lattice approach for requirements validation with UML state machine model[C].IEEE International Conference on Software Engineering Re-search,Management and Applications,2007:393-400.
  • 2张尧学,史美林.计算机操作系统教程[M].北京:清华大学出版社,2003.
  • 3张益新,沈雁.算法引论[M].北京:国防科技大学出版社,1997.
  • 4Elbaum S,Rothermel G.Leveraging user-session data to support web application testing[J].IEEE Transac-tions on Software Engineering,2005,31(3):187-202.
  • 5Wille R.Restructuring lattice theory:an approach based on hierarchies of concepts[J].Ordered Sets,1982:445-470.
  • 6Martin P,Eklund P W.Knowledge retrieval and the world wide web[J].IEEE International Conference on Software Engineering Research,Management and Applications,2000,3(15):18-25.
  • 7单国栋,戴英侠,王航.计算机漏洞分类研究[J].计算机工程,2002,28(10):3-6. 被引量:58

共引文献3

同被引文献28

引证文献3

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部