Giter VIP home page Giter VIP logo

syncserver's Introduction

syncServer

一个基于tcp的C/S游戏同步服务器,用于测试游戏的同步需求。

Version

v0.1

基本能用。目前能想到的后续计划:
1、集群化;
2、加入LockStep同步;
3、多种传输协议尝试;
4、优化Context功能,如日志模块和配置模块;
5、限流

Quick start

Requirments

Go version>=1.16

Installation

git clone https://github.com/Zenger-sun/syncServer.git  

// 根据需要修改消息 
pb/proto
sh gen.sh

Build & Run

// main()请参考 example/main.go
go build -o server.exe

Documentation

sync包含的模块如下:
sync listen采用tcp连接,自定义head用于解包,未加密,后续会考虑多种传输协议
考虑到玩家操作都是顺序的,采用actor封装transport,由transport顺序校验、分发
抽象出serviceM用于管理syncServer下的所有service,serviceM还可以管理路由,为后续的cluster提供接口,除此之外,serviceM还充当service的监控器,如果有service panic,还会重启service

syncserver's People

Contributors

zenger-sun avatar

Stargazers

 avatar  avatar

Watchers

 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.