中文摘要
目前,以计算机技术和网络技术为核心的现代网络技术已在现实生活和生产中得以广泛的使用,休闲类网络游戏集趣味性,娱乐性,互动性和益智性于一体,已经成为多数人群的休闲方式。本软件使用C 语言实现,通过对SCOKET技术的理解,在此基础上建立服务器与多客户端的连接,利用多线程处理多个客户端之间的信息。
关键词:多线程、SCOKET、客户端、服务器
EnglishAbstract
Currently,computertechnologyandnetworktechnologyatthecoreofmodernnetworktechnologyandproductioninreallifecanbewidelyusedintheleisurecategoryofonlinegamesetinteresting,entertaining,interactiveandinformativeandinone,hasbecomethemajorityofthecrowdleisure.TheuseofthissoftwareC languagetoachieve,throughtechnologySCOKETunderstanding,inthisbasedonclientserverandmulti-link,usinganumberofmulti-threadedprocessingofinformationbetweentheclient.
Keywords:multi-threaded,SCOKET,client,server
目录
毕业设计(论文)...................................................1
摘要...............................................................2
1前言.............................................................4
1.1五子棋介绍......................................................4
1.2开发背景........................................................4
1.3 开发环境及运行环境.............................................4
1.3.1开发环境...................................................4
1.3.2运行环境....................................................4
2软件构架..........................................................4
2.1棋盘类.........................................................5
2.2游戏模式类......................................................5
3棋盘类............................................................7
3.1主要成员变量说明.................................................7
3.2主要成员函数说明................................................8
4游戏模式类........................................................11
4.1主要成员变量说明................................................12
4.2主要成员函数说明................................................12
5消息机制..........................................................15
5.1消息机制的构架..................................................15
5.2各种消息说明....................................................16
6主要算法..........................................................21
6.1判断胜负........................................................21
7几点补充说明......................................................24
8心得体会..........................................................25
参考文献..........................................................26