8000 GitHub - robot1d/MoonNetLua: A lightweight,scalable game server framework written in C++, and suport Lua Script
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

robot1d/MoonNetLua

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moon

一个轻量级的游戏服务器框架,底层采用C++11编写,逻辑层采用Lua脚本。

Dependencies

Bulid

git clone https://github.com/sniper00/MoonNetLua.git get the Sources

The project use of C++11/14 features, I tested compliers are:

  • GCC 7.3
  • Visual Studio 2015 Community Update 4

Linux Platform:

  • make config=debug_linux
  • make config=release_linux

把编译完成后把bin目录的moon可执行文件拷贝到example目录。

Example

Echo Example

网络通信示例

  • 命令行输入 ./moon 1
  • python 运行echoclient.py 脚本

Redis Client Example

非阻塞redis client, 默认连接 127.0.0.1 6379

  • 命令行输入 ./moon 2

Service Send/Call Message

服务间发送消息示例

  • 命令行输入 ./moon 3
  • 命令行输入 ./moon 4 call示例

Cluster Example

服务间发送消息示例

  • 命令行输入 ./moon 5
  • 命令行输入 ./moon 6

QQ交流群543833695

see more

About

A lightweight,scalable game server framework written in C++, and suport Lua Script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 78.7%
  • C 16.5%
  • Lua 3.8%
  • Makefile 0.7%
  • C# 0.3%
  • HTML 0.0%
0