Watch 1 Star 12 Fork 10

jackiesun8 / skynetMIT

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Nothing here. spread retract

Clone or download
jackiesun8 authored up
Notice: Creating folder will generate an empty file .keep, because not support in Git


For linux, install autoconf first for jemalloc

git clone
cd skynet
make 'PLATFORM'  # PLATFORM can be linux, macosx, freebsd now

Or you can :

export PLAT=linux

For freeBSD , use gmake instead of make .


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 ( .

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)

Comments ( 0 )

You need to Sign in for post a comment

Help Search