All Projects → 9b9387 → Zero

9b9387 / Zero

Licence: mit
A Lightweight Socket Service with heartbeat, Can be easily used in TCP server development.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Zero

Cellnet
High performance, simple, extensible golang open source network library
Stars: ✭ 3,714 (+2206.83%)
Mutual labels:  game, server, socket, tcp-server
Gameproject3
游戏服务器框架,网络层分别用SocketAPI、Boost Asio、Libuv三种方式实现, 框架内使用共享内存,无锁队列,对象池,内存池来提高服务器性能。还包含一个不断完善的Unity 3D客户端,客户端含大量完整资源,坐骑,宠物,伙伴,装备, 这些均己实现上阵和穿戴, 并可进入副本战斗,多人玩法也己实现, 持续开发中。
Stars: ✭ 655 (+306.83%)
Mutual labels:  game, gamedev, game-server, server
Nano
Lightweight, facility, high performance golang based game server framework
Stars: ✭ 1,888 (+1072.67%)
Mutual labels:  game, server, tcp-server
Einx
a framework in golang for game server or app server
Stars: ✭ 376 (+133.54%)
Mutual labels:  game, game-server, server
Tinytcpserver
A small tcp server working under Mono or .NET (4.0) and provides hooks for handling data exchange with clients (works under mono and .net). Behaviour/protocol/reaction could be specified via custom C# script.
Stars: ✭ 14 (-91.3%)
Mutual labels:  server, socket, tcp-server
Pss
This is a based plug-in framework that provides cross-platform IO and logically separated plug-in services.
Stars: ✭ 219 (+36.02%)
Mutual labels:  game, game-server, server
Gameservers Docker
A bunch of game servers I use, dockerised
Stars: ✭ 322 (+100%)
Mutual labels:  game, game-server, server
Noahgameframe
A fast, scalable, distributed game server engine/framework for C++, include the actor library, network library, can be used as a real time multiplayer game engine ( MMO RPG/MOBA ), which support C#/Lua script/ Unity3d, Cocos2dx and plan to support Unreal.
Stars: ✭ 3,258 (+1923.6%)
Mutual labels:  game, gamedev, game-server
Racingworld
💥 A multiplayer online 3D game about racing 💥
Stars: ✭ 50 (-68.94%)
Mutual labels:  game, game-server, server
Azerothcore Wotlk
Complete Open Source and Modular solution for MMO
Stars: ✭ 1,330 (+726.09%)
Mutual labels:  game, game-server, server
Kaetram Open
An open-source 2D HTML5 adventure based off BrowserQuest (BQ).
Stars: ✭ 138 (-14.29%)
Mutual labels:  game, gamedev, game-server
Oksocket
An blocking socket client for Android applications.
Stars: ✭ 2,359 (+1365.22%)
Mutual labels:  server, socket, tcp-server
Carmelo
Carmelo is a fast, scalable Java server framework designed for online games. It uses Netty and Fastjson for highly efficient network transmission and supports both TCP/HTTP protocols.
Stars: ✭ 148 (-8.07%)
Mutual labels:  game, game-server, server
Forgottenserver
A free and open-source MMORPG server emulator written in C++
Stars: ✭ 1,024 (+536.02%)
Mutual labels:  game, game-server, server
Deta cache
缓存cache服务器
Stars: ✭ 106 (-34.16%)
Mutual labels:  server, socket, tcp-server
Mmo Server
Distributed Java game server, including login, gateway, game demo
Stars: ✭ 114 (-29.19%)
Mutual labels:  game, game-server, server
Lambda Lantern
🧙 ‎‎ A 3D game about functional programming patterns. Uses PureScript Native, C++, and Panda3D.
Stars: ✭ 122 (-24.22%)
Mutual labels:  game, gamedev
Gamedev4noobs
Olá, sejam bem-vindos ao repositório _gamedev4noobs_ do Estúdio Vaca Roxa. O propósito desse repositório, além de contribuir para o projeto 4noobs, é ensinar o básico do desenvolvimento de jogos para iniciantes. Apresentando boas práticas e insumos para criar games incríveis.
Stars: ✭ 122 (-24.22%)
Mutual labels:  game, gamedev
Pandocs
The infamous Pan Docs historical document: the single, most comprehensive Game Boy technical reference.
Stars: ✭ 158 (-1.86%)
Mutual labels:  game, gamedev
Gamedev Resources
🎮 🎲 A wonderful list of Game Development resources.
Stars: ✭ 2,054 (+1175.78%)
Mutual labels:  game, gamedev

zero

A Lightweight Socket Service with heartbeat, Can be easily used in TCP server development.

Build Status Go Report Card GoDoc

Wiki Page https://github.com/9b9387/zero/wiki

Requirements

Go version: 1.9.x or later

Usage

go get -u github.com/9b9387/zero
import "github.com/9b9387/zero"

func main() {
 	host := "127.0.0.1:18787"

 	ss, err := zero.NewSocketService(host)
	if err != nil {
		return
	}

	// set Heartbeat
	ss.SetHeartBeat(5*time.Second, 30*time.Second)

	// net event
	ss.RegMessageHandler(HandleMessage)
	ss.RegConnectHandler(HandleConnect)
	ss.RegDisconnectHandler(HandleDisconnect)

	ss.Serv()
}


Example Code: https://github.com/9b9387/zero/blob/master/service_test.go

Demo

Unity Client Repository https://github.com/9b9387/zero_unity_demo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].