私信发送成功
Watch Star Fork

jackiesun8 / skynetMIT

暂无描述
克隆/下载
jackiesun8 最后提交于 2017-11-20 14:13 up
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
2015-02-17 22:46
2015-02-17 22:46
2017-09-04 18:12
2017-11-20 14:13
2015-03-06 15:27
2017-11-20 14:13
2017-10-09 15:18
2015-02-17 22:46
2015-02-17 22:46
2015-02-17 22:46
2017-10-16 16:57
2015-02-17 22:46
2015-02-17 22:46
2015-02-17 22:46
2015-02-17 22:46
2015-02-17 22:46
2017-10-16 16:57
2017-10-16 16:57
Loading...
README.md 1.00 KB

Build

For linux, install autoconf first for jemalloc

git clone https://github.com/cloudwu/skynet.git
cd skynet
make 'PLATFORM'  # PLATFORM can be linux, macosx, freebsd now

Or you can :

export PLAT=linux
make

For freeBSD , use gmake instead of make .

Test

Run these in different console

./skynet examples/config	# Launch first skynet node  (Gate server) and a skynet-master (see config for standalone option)
lua examples/client.lua 	# Launch a client, and try to input some words.

About Lua

Skynet put a modified version of lua 5.2.3 in 3rd/lua , it can share proto type between lua state (http://lua-users.org/lists/lua-l/2014-03/msg00489.html) .

Each lua file only load once and cache it in memory during skynet start . so if you want to reflush the cache , call skynet.cache.clear() .

You can also use the offical lua version , edit the makefile by yourself .

How To (in Chinese)

项目点评 ( 0 )

你可以在登录后,对此项目发表评论

6_float_left_people 6_float_left_close