轻量级网络游戏框架 – skynet
Skynet
Skynet是一款轻量级网络游戏框架,可以在很多其他领域使用。
Build
对于Linux,首先安装jemalloc的autoconf:
git clone https://github.com/cloudwu/skynet.git
cd skynet
make 'PLATFORM' # PLATFORM can be linux, macosx, freebsd now
或者你可以:
export PLAT=linux
make
测试
在不同的控制台运行:
./skynet examples/config # Launch first skynet node (Gate server) and a skynet-master (see config for standalone option)
./3rd/lua/lua examples/client.lua # Launch a client, and try to input hello.