Files
skynet/README.md
2014-04-18 18:16:46 +08:00

41 lines
1.1 KiB
Markdown

## Build
Install autoconf first for jemalloc
```
git clone git@github.com:cloudwu/skynet.git
cd skynet
make 'PLATFORM' # PLATFORM can be linux, macosx, freebsd now
```
Or you can :
```
export PLAT=linux
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 .
## Blog (in Chinese)
* http://blog.codingnow.com/2012/09/the_design_of_skynet.html
* http://blog.codingnow.com/2012/08/skynet.html
* http://blog.codingnow.com/2012/08/skynet_harbor_rpc.html
* http://blog.codingnow.com/eo/skynet/