Pure C language version of the Golden Dot game

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.