Computer Engineering and Applications ›› 2009, Vol. 45 ›› Issue (7): 75-78.DOI: 10.3778/j.issn.1002-8331.2009.07.024

• 研发、设计、测试 • Previous Articles     Next Articles

Realization of IOCP-based net layer of online games server

WANG Rui-biao,LI Feng-qi,SHI Yu-xun,ZHANG Xian-chao   

  1. School of software,Dalian University of Technology,Dalian,Liaoning 116621,China
  • Received:2008-01-02 Revised:2008-03-31 Online:2009-03-01 Published:2009-03-01
  • Contact: WANG Rui-biao

基于IOCP机制的网络游戏服务器通信层的实现

王瑞彪,李凤岐,施玉勋,张宪超   

  1. 大连理工大学 软件学院,辽宁 大连 116621
  • 通讯作者: 王瑞彪

Abstract: This paper illustrates the development of online games server by using an efficient Input/Output method-IOCP mechanism provided by the Windows operating system.It gives the realization of the net layer of online games server,and supplies the game developer with virtual function interfaces.So,the game developer can concentrate on developing the game logic.Finally,the method is presented to apply these interfaces.

Key words: Input Output Completion Port(IOCP), online games, server, interface

摘要: 以网络游戏服务器的开发为背景,利用Windows操作系统提供的一种高效I/O机制-IOCP(Input Output Compeltion Port)机制,给出了实现网络游戏服务器端网络通信层的方法,并留虚函数接口给游戏开发者,使游戏开发者专注于游戏逻辑的开发,不再考虑网络通信的问题。最后,结合开发的一个象棋网络游戏服务器给出了使用这些接口的方法。

关键词: 完成端口, 网络游戏, 服务器, 接口