7.21 杭州源创会火热报名中,一起来看看移动开发如何紧跟浪潮?
Watch Star Fork

jackiesun8 / skynetMIT

加入碼雲
與超過 200 萬 開發者一起發現、參與優秀開源項目,私有倉庫也完全免費 :)
免費加入
暫無描述
jackiesun8 最後提交於 up
取消
提示: 由於 Git 不支持空文件夾,創建文件夾後會生成空的 .keep 文件
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 )

你可以在登錄後,發表評論

11_float_left_people 11_float_left_close