Code Monkey home page Code Monkey logo

gameserver's Introduction

GameServer

网络编程项目。

Target

实现一个游戏服务器,满足并发要求,并且保证一定的效率。

Files

  • main.go —— 程序入口,负责初始化CPU分配、打开控制台、准备消息分发routines,侦听端口,并且接收客户端的连接。

Packages

  • connection —— 用于建立与客户端的连接,进行读写数据。
  • message —— 用于负责服务器向客户端方向的信息的递送,主要功能是广播和点对点通信;
  • types —— 包含整个服务器所用到的各种数据结构,比如用户信息结构体等;
  • users —— 包含用户管理相关函数,比如用户进入游戏与离开。
  • console —— 给服务端添加一个控制台,便于输入指令调试。

gameserver's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.