Recently spent a period of time learning TCP/IP network programming technology, mastered the TCP/C/S network communication model, familiar with the server and client software program design process, and the use of multi-threaded and mutual exclusion lock, condition variables and other implementation of the concurrency mechanism.
Project Introduction
Development environment: Visual Studio 2013
Operating Environment: Windows 7 and later
Network model: Use the TCP/C/S network communication model to implement the golden point game framework.
Language technology: Pure C language Development, support multi-threading, using mutex and conditional variables to complete synchronization and asynchronous between threads.
Program functions
Server: The user's connection and disconnection are prompted accordingly. When a new user connects, the server automatically creates a new thread for the communication of the game data. Has a menu that allows you to control the game and shut down the server at any time.
Client: The user needs to use the server's IP address and port number, connect to the server, play the game. Also has a menu that lets you select numbers, view scores, and exit games at any time.
Defect: The server has only a subset of the features added mutex and condition variables, so when the client is more connected, there is a running risk, and this program is limited by the domain.
Pure C language version of the Golden Dot game source code and release version download link: Https://github.com/xucongandxuchong/Gold-Point
Pure C language version of the Golden Dot game