本次project实现如下功能: 写了一个本地的多线程游戏服务器ThreadeEchoServer,地址和端口为:127.0.0.1:9999 写了一个本地的多线程游戏客户端client,用来连接服务器,并进行通信. 在客户端下可以启动两个小游戏:连连看和俄罗斯方块.都需要网络服务器做出响应才能启动,可以建立客户的多线程,也就是多个客户连服务器.同时可以在一个客户实现同时玩两个游戏. 两个游戏的代码改编于网络公布的源代码,原来的源代码有很多错误和不足,给出了合适我们的修正. 运行方式:先编译生成所有的class文件,本地启动服务器,再启动客户端,在客户端进行选择操作,来启动游戏,按面板提示进行游戏,最后退出客户端即可. 开发工具:jCreat 开发人员:曾捷 -this project to achieve the following functions : writing a multithreaded local game servers ThreadeEchoServer, addresses and ports : 127.0.0.1:9999 was a local multithreaded game client client, used to connect to servers, and communications. The client can be activated under two small games : 1000 block of Terry Avenue and Tetris. Need to respond to network servers can be initiated, can build customer multithreading, which is even more customers servers. At the same time, a customer can simultaneously play two games. Two games based on code released by the network source code, the original source code with a lot of mistakes and shortcomings, and we have given appropriate amendments. Operation : compiler generates all the first class of documents, local boot server, Restart client, the cli 下载
|