├── 1542035818146.png ├── 1542036421603.png ├── 1542038237332.png ├── README.md ├── Server ├── .idea │ ├── Server.iml │ ├── dictionaries │ │ └── Administrator.xml │ ├── misc.xml │ ├── modules.xml │ ├── vcs.xml │ └── workspace.xml ├── log │ └── center.log ├── skynet │ ├── bin │ │ ├── liunx │ │ │ ├── cservice │ │ │ │ ├── gate.so │ │ │ │ ├── harbor.so │ │ │ │ ├── logger.so │ │ │ │ └── snlua.so │ │ │ ├── luaclib │ │ │ │ ├── bgcrypto.so │ │ │ │ ├── bson.so │ │ │ │ ├── cjson.so │ │ │ │ ├── client.so │ │ │ │ ├── clientintsocket.so │ │ │ │ ├── clientwebsocket.so │ │ │ │ ├── intnetpack.so │ │ │ │ ├── lpeg.so │ │ │ │ ├── ltask.so │ │ │ │ ├── md5.so │ │ │ │ ├── pb.so │ │ │ │ ├── skynet.so │ │ │ │ ├── sproto.so │ │ │ │ ├── webclient.so │ │ │ │ └── websocketnetpack.so │ │ │ └── skynet │ │ └── win32 │ │ │ ├── cservice │ │ │ ├── gate.exp │ │ │ ├── gate.ilk │ │ │ ├── gate.lib │ │ │ ├── gate.pdb │ │ │ ├── gate.so │ │ │ ├── harbor.exp │ │ │ ├── harbor.ilk │ │ │ ├── harbor.lib │ │ │ ├── harbor.pdb │ │ │ ├── harbor.so │ │ │ ├── logger.exp │ │ │ ├── logger.ilk │ │ │ ├── logger.lib │ │ │ ├── logger.pdb │ │ │ ├── logger.so │ │ │ ├── snlua.exp │ │ │ ├── snlua.ilk │ │ │ ├── snlua.lib │ │ │ ├── snlua.pdb │ │ │ └── snlua.so │ │ │ ├── libtcmalloc.dll │ │ │ ├── libtcmalloc.lib │ │ │ ├── lua5.dll │ │ │ ├── lua5.exp │ │ │ ├── lua5.ilk │ │ │ ├── lua5.lib │ │ │ ├── lua5.pdb │ │ │ ├── luaclib │ │ │ ├── bson.exp │ │ │ ├── bson.ilk │ │ │ ├── bson.lib │ │ │ ├── bson.pdb │ │ │ ├── bson.so │ │ │ ├── cjson.exp │ │ │ ├── cjson.ilk │ │ │ ├── cjson.lib │ │ │ ├── cjson.pdb │ │ │ ├── cjson.so │ │ │ ├── client │ │ │ │ ├── crypt.ilk │ │ │ │ ├── crypt.pdb │ │ │ │ ├── crypt.so │ │ │ │ ├── socket.ilk │ │ │ │ ├── socket.pdb │ │ │ │ └── socket.so │ │ │ ├── clientsocket.exp │ │ │ ├── clientsocket.lib │ │ │ ├── cluster.exp │ │ │ ├── cluster.lib │ │ │ ├── crypt.exp │ │ │ ├── crypt.lib │ │ │ ├── debugchannel.exp │ │ │ ├── debugchannel.lib │ │ │ ├── lpeg.exp │ │ │ ├── lpeg.ilk │ │ │ ├── lpeg.lib │ │ │ ├── lpeg.pdb │ │ │ ├── lpeg.so │ │ │ ├── ltask.exp │ │ │ ├── ltask.ilk │ │ │ ├── ltask.lib │ │ │ ├── ltask.pdb │ │ │ ├── ltask.so │ │ │ ├── md5.exp │ │ │ ├── md5.ilk │ │ │ ├── md5.lib │ │ │ ├── md5.pdb │ │ │ ├── md5.so │ │ │ ├── memory.exp │ │ │ ├── memory.lib │ │ │ ├── mongo.exp │ │ │ ├── mongo.lib │ │ │ ├── multicast.exp │ │ │ ├── multicast.lib │ │ │ ├── mysqlaux.exp │ │ │ ├── mysqlaux.ilk │ │ │ ├── mysqlaux.lib │ │ │ ├── mysqlaux.pdb │ │ │ ├── mysqlaux.so │ │ │ ├── netpack.exp │ │ │ ├── netpack.lib │ │ │ ├── profile.exp │ │ │ ├── profile.ilk │ │ │ ├── profile.lib │ │ │ ├── profile.pdb │ │ │ ├── profile.so │ │ │ ├── protobuf.exp │ │ │ ├── protobuf.ilk │ │ │ ├── protobuf.lib │ │ │ ├── protobuf.pdb │ │ │ ├── protobuf.so │ │ │ ├── sharedata.exp │ │ │ ├── sharedata.lib │ │ │ ├── skynet.exp │ │ │ ├── skynet.lib │ │ │ ├── skynet │ │ │ │ ├── cluster │ │ │ │ │ ├── core.ilk │ │ │ │ │ ├── core.pdb │ │ │ │ │ └── core.so │ │ │ │ ├── core.ilk │ │ │ │ ├── core.pdb │ │ │ │ ├── core.so │ │ │ │ ├── debugchannel.ilk │ │ │ │ ├── debugchannel.pdb │ │ │ │ ├── debugchannel.so │ │ │ │ ├── memory.ilk │ │ │ │ ├── memory.pdb │ │ │ │ ├── memory.so │ │ │ │ ├── mongo │ │ │ │ │ ├── driver.ilk │ │ │ │ │ ├── driver.pdb │ │ │ │ │ └── driver.so │ │ │ │ ├── multicast │ │ │ │ │ ├── core.ilk │ │ │ │ │ ├── core.pdb │ │ │ │ │ └── core.so │ │ │ │ ├── netpack.ilk │ │ │ │ ├── netpack.pdb │ │ │ │ ├── netpack.so │ │ │ │ ├── profile.pdb │ │ │ │ ├── profile.so │ │ │ │ ├── sharedata │ │ │ │ │ ├── core.ilk │ │ │ │ │ ├── core.pdb │ │ │ │ │ └── core.so │ │ │ │ ├── socketdriver.ilk │ │ │ │ ├── socketdriver.pdb │ │ │ │ ├── socketdriver.so │ │ │ │ ├── stm.ilk │ │ │ │ ├── stm.pdb │ │ │ │ └── stm.so │ │ │ ├── socketdriver.exp │ │ │ ├── socketdriver.lib │ │ │ ├── sproto.exp │ │ │ ├── sproto.ilk │ │ │ ├── sproto.lib │ │ │ ├── sproto.pdb │ │ │ ├── sproto.so │ │ │ ├── sproto │ │ │ │ ├── sproto.ilk │ │ │ │ ├── sproto.pdb │ │ │ │ └── sproto.so │ │ │ ├── stm.exp │ │ │ └── stm.lib │ │ │ ├── posix.lib │ │ │ ├── pthread.dll │ │ │ ├── pthread.h │ │ │ ├── pthread.lib │ │ │ ├── skynet.exe │ │ │ ├── skynet.exp │ │ │ ├── skynet.ilk │ │ │ ├── skynet.lib │ │ │ ├── skynet.pdb │ │ │ └── skynet.so │ ├── examples │ │ ├── abort.lua │ │ ├── agent.lua │ │ ├── checkdeadloop.lua │ │ ├── client.lua │ │ ├── cluster1.lua │ │ ├── cluster2.lua │ │ ├── clustername.lua │ │ ├── config │ │ ├── config.c1 │ │ ├── config.c2 │ │ ├── config.login │ │ ├── config.mc │ │ ├── config.mysql │ │ ├── config.path │ │ ├── config.userlog │ │ ├── config_log │ │ ├── globallog.lua │ │ ├── injectlaunch.lua │ │ ├── login │ │ │ ├── client.lua │ │ │ ├── gated.lua │ │ │ ├── logind.lua │ │ │ ├── main.lua │ │ │ └── msgagent.lua │ │ ├── main.lua │ │ ├── main_log.lua │ │ ├── main_mysql.lua │ │ ├── preload.lua │ │ ├── proto.lua │ │ ├── protoloader.lua │ │ ├── share.lua │ │ ├── simpledb.lua │ │ ├── simplemonitor.lua │ │ ├── simpleweb.lua │ │ ├── userlog.lua │ │ ├── watchdog.lua │ │ ├── wsclient.lua │ │ ├── wsconfig │ │ ├── wsmain.lua │ │ └── wswatchdog.lua │ ├── lualib │ │ ├── compat10 │ │ │ ├── cluster.lua │ │ │ ├── crypt.lua │ │ │ ├── datacenter.lua │ │ │ ├── dns.lua │ │ │ ├── memory.lua │ │ │ ├── mongo.lua │ │ │ ├── mqueue.lua │ │ │ ├── multicast.lua │ │ │ ├── mysql.lua │ │ │ ├── netpack.lua │ │ │ ├── profile.lua │ │ │ ├── redis.lua │ │ │ ├── sharedata.lua │ │ │ ├── sharemap.lua │ │ │ ├── snax.lua │ │ │ ├── socket.lua │ │ │ ├── socketchannel.lua │ │ │ ├── socketdriver.lua │ │ │ └── stm.lua │ │ ├── http │ │ │ ├── httpc.lua │ │ │ ├── httpd.lua │ │ │ ├── internal.lua │ │ │ ├── sockethelper.lua │ │ │ └── url.lua │ │ ├── loader.lua │ │ ├── md5.lua │ │ ├── protoc.lua │ │ ├── serpent.lua │ │ ├── skynet.lua │ │ ├── skynet │ │ │ ├── cluster.lua │ │ │ ├── coroutine.lua │ │ │ ├── datacenter.lua │ │ │ ├── datasheet │ │ │ │ ├── builder.lua │ │ │ │ ├── dump.lua │ │ │ │ └── init.lua │ │ │ ├── db │ │ │ │ ├── mongo.lua │ │ │ │ ├── mysql.lua │ │ │ │ ├── redis.lua │ │ │ │ └── redis │ │ │ │ │ ├── cluster.lua │ │ │ │ │ └── crc16.lua │ │ │ ├── debug.lua │ │ │ ├── dns.lua │ │ │ ├── harbor.lua │ │ │ ├── inject.lua │ │ │ ├── injectcode.lua │ │ │ ├── manager.lua │ │ │ ├── mqueue.lua │ │ │ ├── multicast.lua │ │ │ ├── queue.lua │ │ │ ├── reload.lua │ │ │ ├── remotedebug.lua │ │ │ ├── service.lua │ │ │ ├── sharedata.lua │ │ │ ├── sharedata │ │ │ │ └── corelib.lua │ │ │ ├── sharemap.lua │ │ │ ├── snax.lua │ │ │ ├── socket.lua │ │ │ └── socketchannel.lua │ │ ├── snax │ │ │ ├── gateserver.lua │ │ │ ├── hotfix.lua │ │ │ ├── interface.lua │ │ │ ├── loginserver.lua │ │ │ └── msgserver.lua │ │ ├── sproto.lua │ │ ├── sprotoloader.lua │ │ └── sprotoparser.lua │ ├── service │ │ ├── bootstrap.lua │ │ ├── cdummy.lua │ │ ├── clusteragent.lua │ │ ├── clusterd.lua │ │ ├── clusterproxy.lua │ │ ├── cmaster.lua │ │ ├── cmemory.lua │ │ ├── console.lua │ │ ├── cslave.lua │ │ ├── datacenterd.lua │ │ ├── dbg.lua │ │ ├── debug_agent.lua │ │ ├── debug_console.lua │ │ ├── gate.lua │ │ ├── launcher.lua │ │ ├── multicastd.lua │ │ ├── service_cell.lua │ │ ├── service_mgr.lua │ │ ├── service_provider.lua │ │ ├── sharedatad.lua │ │ ├── snaxd.lua │ │ └── wsgate.lua │ ├── src │ │ ├── 3rd │ │ │ ├── jemalloc │ │ │ │ ├── .appveyor.yml │ │ │ │ ├── .autom4te.cfg │ │ │ │ ├── .gitattributes │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── COPYING │ │ │ │ ├── ChangeLog │ │ │ │ ├── INSTALL.md │ │ │ │ ├── Makefile.in │ │ │ │ ├── README │ │ │ │ ├── autogen.sh │ │ │ │ ├── bin │ │ │ │ │ ├── jemalloc-config.in │ │ │ │ │ ├── jemalloc.sh.in │ │ │ │ │ └── jeprof.in │ │ │ │ ├── build-aux │ │ │ │ │ ├── config.guess │ │ │ │ │ ├── config.sub │ │ │ │ │ └── install-sh │ │ │ │ ├── config.stamp.in │ │ │ │ ├── configure.ac │ │ │ │ ├── doc │ │ │ │ │ ├── html.xsl.in │ │ │ │ │ ├── jemalloc.xml.in │ │ │ │ │ ├── manpages.xsl.in │ │ │ │ │ └── stylesheet.xsl │ │ │ │ ├── include │ │ │ │ │ ├── jemalloc │ │ │ │ │ │ ├── internal │ │ │ │ │ │ │ ├── arena_externs.h │ │ │ │ │ │ │ ├── arena_inlines_a.h │ │ │ │ │ │ │ ├── arena_inlines_b.h │ │ │ │ │ │ │ ├── arena_structs_a.h │ │ │ │ │ │ │ ├── arena_structs_b.h │ │ │ │ │ │ │ ├── arena_types.h │ │ │ │ │ │ │ ├── assert.h │ │ │ │ │ │ │ ├── atomic.h │ │ │ │ │ │ │ ├── atomic_c11.h │ │ │ │ │ │ │ ├── atomic_gcc_atomic.h │ │ │ │ │ │ │ ├── atomic_gcc_sync.h │ │ │ │ │ │ │ ├── atomic_msvc.h │ │ │ │ │ │ │ ├── background_thread_externs.h │ │ │ │ │ │ │ ├── background_thread_inlines.h │ │ │ │ │ │ │ ├── background_thread_structs.h │ │ │ │ │ │ │ ├── base_externs.h │ │ │ │ │ │ │ ├── base_inlines.h │ │ │ │ │ │ │ ├── base_structs.h │ │ │ │ │ │ │ ├── base_types.h │ │ │ │ │ │ │ ├── bit_util.h │ │ │ │ │ │ │ ├── bitmap.h │ │ │ │ │ │ │ ├── ckh.h │ │ │ │ │ │ │ ├── ctl.h │ │ │ │ │ │ │ ├── extent_dss.h │ │ │ │ │ │ │ ├── extent_externs.h │ │ │ │ │ │ │ ├── extent_inlines.h │ │ │ │ │ │ │ ├── extent_mmap.h │ │ │ │ │ │ │ ├── extent_structs.h │ │ │ │ │ │ │ ├── extent_types.h │ │ │ │ │ │ │ ├── hash.h │ │ │ │ │ │ │ ├── hooks.h │ │ │ │ │ │ │ ├── jemalloc_internal_decls.h │ │ │ │ │ │ │ ├── jemalloc_internal_defs.h.in │ │ │ │ │ │ │ ├── jemalloc_internal_externs.h │ │ │ │ │ │ │ ├── jemalloc_internal_includes.h │ │ │ │ │ │ │ ├── jemalloc_internal_inlines_a.h │ │ │ │ │ │ │ ├── jemalloc_internal_inlines_b.h │ │ │ │ │ │ │ ├── jemalloc_internal_inlines_c.h │ │ │ │ │ │ │ ├── jemalloc_internal_macros.h │ │ │ │ │ │ │ ├── jemalloc_internal_types.h │ │ │ │ │ │ │ ├── jemalloc_preamble.h.in │ │ │ │ │ │ │ ├── large_externs.h │ │ │ │ │ │ │ ├── malloc_io.h │ │ │ │ │ │ │ ├── mutex.h │ │ │ │ │ │ │ ├── mutex_pool.h │ │ │ │ │ │ │ ├── mutex_prof.h │ │ │ │ │ │ │ ├── nstime.h │ │ │ │ │ │ │ ├── pages.h │ │ │ │ │ │ │ ├── ph.h │ │ │ │ │ │ │ ├── private_namespace.sh │ │ │ │ │ │ │ ├── private_symbols.sh │ │ │ │ │ │ │ ├── prng.h │ │ │ │ │ │ │ ├── prof_externs.h │ │ │ │ │ │ │ ├── prof_inlines_a.h │ │ │ │ │ │ │ ├── prof_inlines_b.h │ │ │ │ │ │ │ ├── prof_structs.h │ │ │ │ │ │ │ ├── prof_types.h │ │ │ │ │ │ │ ├── public_namespace.sh │ │ │ │ │ │ │ ├── public_unnamespace.sh │ │ │ │ │ │ │ ├── ql.h │ │ │ │ │ │ │ ├── qr.h │ │ │ │ │ │ │ ├── rb.h │ │ │ │ │ │ │ ├── rtree.h │ │ │ │ │ │ │ ├── rtree_tsd.h │ │ │ │ │ │ │ ├── size_classes.sh │ │ │ │ │ │ │ ├── smoothstep.h │ │ │ │ │ │ │ ├── smoothstep.sh │ │ │ │ │ │ │ ├── spin.h │ │ │ │ │ │ │ ├── stats.h │ │ │ │ │ │ │ ├── stats_tsd.h │ │ │ │ │ │ │ ├── sz.h │ │ │ │ │ │ │ ├── tcache_externs.h │ │ │ │ │ │ │ ├── tcache_inlines.h │ │ │ │ │ │ │ ├── tcache_structs.h │ │ │ │ │ │ │ ├── tcache_types.h │ │ │ │ │ │ │ ├── ticker.h │ │ │ │ │ │ │ ├── tsd.h │ │ │ │ │ │ │ ├── tsd_generic.h │ │ │ │ │ │ │ ├── tsd_malloc_thread_cleanup.h │ │ │ │ │ │ │ ├── tsd_tls.h │ │ │ │ │ │ │ ├── tsd_types.h │ │ │ │ │ │ │ ├── tsd_win.h │ │ │ │ │ │ │ ├── util.h │ │ │ │ │ │ │ └── witness.h │ │ │ │ │ │ ├── jemalloc.sh │ │ │ │ │ │ ├── jemalloc_defs.h.in │ │ │ │ │ │ ├── jemalloc_macros.h.in │ │ │ │ │ │ ├── jemalloc_mangle.sh │ │ │ │ │ │ ├── jemalloc_protos.h.in │ │ │ │ │ │ ├── jemalloc_rename.sh │ │ │ │ │ │ └── jemalloc_typedefs.h.in │ │ │ │ │ └── msvc_compat │ │ │ │ │ │ ├── C99 │ │ │ │ │ │ ├── stdbool.h │ │ │ │ │ │ └── stdint.h │ │ │ │ │ │ ├── strings.h │ │ │ │ │ │ └── windows_extra.h │ │ │ │ ├── jemalloc.pc.in │ │ │ │ ├── m4 │ │ │ │ │ └── ax_cxx_compile_stdcxx.m4 │ │ │ │ ├── msvc │ │ │ │ │ ├── ReadMe.txt │ │ │ │ │ ├── jemalloc_vc2015.sln │ │ │ │ │ └── projects │ │ │ │ │ │ └── vc2015 │ │ │ │ │ │ ├── jemalloc │ │ │ │ │ │ ├── jemalloc.vcxproj │ │ │ │ │ │ └── jemalloc.vcxproj.filters │ │ │ │ │ │ └── test_threads │ │ │ │ │ │ ├── test_threads.cpp │ │ │ │ │ │ ├── test_threads.h │ │ │ │ │ │ ├── test_threads.vcxproj │ │ │ │ │ │ ├── test_threads.vcxproj.filters │ │ │ │ │ │ └── test_threads_main.cpp │ │ │ │ ├── run_tests.sh │ │ │ │ ├── scripts │ │ │ │ │ ├── gen_run_tests.py │ │ │ │ │ └── gen_travis.py │ │ │ │ ├── src │ │ │ │ │ ├── arena.c │ │ │ │ │ ├── background_thread.c │ │ │ │ │ ├── base.c │ │ │ │ │ ├── bitmap.c │ │ │ │ │ ├── ckh.c │ │ │ │ │ ├── ctl.c │ │ │ │ │ ├── extent.c │ │ │ │ │ ├── extent_dss.c │ │ │ │ │ ├── extent_mmap.c │ │ │ │ │ ├── hash.c │ │ │ │ │ ├── hooks.c │ │ │ │ │ ├── jemalloc.c │ │ │ │ │ ├── jemalloc_cpp.cpp │ │ │ │ │ ├── large.c │ │ │ │ │ ├── malloc_io.c │ │ │ │ │ ├── mutex.c │ │ │ │ │ ├── mutex_pool.c │ │ │ │ │ ├── nstime.c │ │ │ │ │ ├── pages.c │ │ │ │ │ ├── prng.c │ │ │ │ │ ├── prof.c │ │ │ │ │ ├── rtree.c │ │ │ │ │ ├── spin.c │ │ │ │ │ ├── stats.c │ │ │ │ │ ├── sz.c │ │ │ │ │ ├── tcache.c │ │ │ │ │ ├── ticker.c │ │ │ │ │ ├── tsd.c │ │ │ │ │ ├── witness.c │ │ │ │ │ └── zone.c │ │ │ │ └── test │ │ │ │ │ ├── include │ │ │ │ │ └── test │ │ │ │ │ │ ├── SFMT-alti.h │ │ │ │ │ │ ├── SFMT-params.h │ │ │ │ │ │ ├── SFMT-params11213.h │ │ │ │ │ │ ├── SFMT-params1279.h │ │ │ │ │ │ ├── SFMT-params132049.h │ │ │ │ │ │ ├── SFMT-params19937.h │ │ │ │ │ │ ├── SFMT-params216091.h │ │ │ │ │ │ ├── SFMT-params2281.h │ │ │ │ │ │ ├── SFMT-params4253.h │ │ │ │ │ │ ├── SFMT-params44497.h │ │ │ │ │ │ ├── SFMT-params607.h │ │ │ │ │ │ ├── SFMT-params86243.h │ │ │ │ │ │ ├── SFMT-sse2.h │ │ │ │ │ │ ├── SFMT.h │ │ │ │ │ │ ├── btalloc.h │ │ │ │ │ │ ├── extent_hooks.h │ │ │ │ │ │ ├── jemalloc_test.h.in │ │ │ │ │ │ ├── jemalloc_test_defs.h.in │ │ │ │ │ │ ├── math.h │ │ │ │ │ │ ├── mq.h │ │ │ │ │ │ ├── mtx.h │ │ │ │ │ │ ├── test.h │ │ │ │ │ │ ├── thd.h │ │ │ │ │ │ └── timer.h │ │ │ │ │ ├── integration │ │ │ │ │ ├── MALLOCX_ARENA.c │ │ │ │ │ ├── aligned_alloc.c │ │ │ │ │ ├── allocated.c │ │ │ │ │ ├── extent.c │ │ │ │ │ ├── extent.sh │ │ │ │ │ ├── mallocx.c │ │ │ │ │ ├── mallocx.sh │ │ │ │ │ ├── overflow.c │ │ │ │ │ ├── posix_memalign.c │ │ │ │ │ ├── rallocx.c │ │ │ │ │ ├── sdallocx.c │ │ │ │ │ ├── thread_arena.c │ │ │ │ │ ├── thread_tcache_enabled.c │ │ │ │ │ ├── xallocx.c │ │ │ │ │ └── xallocx.sh │ │ │ │ │ ├── src │ │ │ │ │ ├── SFMT.c │ │ │ │ │ ├── btalloc.c │ │ │ │ │ ├── btalloc_0.c │ │ │ │ │ ├── btalloc_1.c │ │ │ │ │ ├── math.c │ │ │ │ │ ├── mq.c │ │ │ │ │ ├── mtx.c │ │ │ │ │ ├── test.c │ │ │ │ │ ├── thd.c │ │ │ │ │ └── timer.c │ │ │ │ │ ├── stress │ │ │ │ │ └── microbench.c │ │ │ │ │ ├── test.sh.in │ │ │ │ │ └── unit │ │ │ │ │ ├── SFMT.c │ │ │ │ │ ├── a0.c │ │ │ │ │ ├── arena_reset.c │ │ │ │ │ ├── arena_reset_prof.c │ │ │ │ │ ├── arena_reset_prof.sh │ │ │ │ │ ├── atomic.c │ │ │ │ │ ├── background_thread.c │ │ │ │ │ ├── base.c │ │ │ │ │ ├── bit_util.c │ │ │ │ │ ├── bitmap.c │ │ │ │ │ ├── ckh.c │ │ │ │ │ ├── decay.c │ │ │ │ │ ├── decay.sh │ │ │ │ │ ├── extent_quantize.c │ │ │ │ │ ├── fork.c │ │ │ │ │ ├── hash.c │ │ │ │ │ ├── hooks.c │ │ │ │ │ ├── junk.c │ │ │ │ │ ├── junk.sh │ │ │ │ │ ├── junk_alloc.c │ │ │ │ │ ├── junk_alloc.sh │ │ │ │ │ ├── junk_free.c │ │ │ │ │ ├── junk_free.sh │ │ │ │ │ ├── mallctl.c │ │ │ │ │ ├── malloc_io.c │ │ │ │ │ ├── math.c │ │ │ │ │ ├── mq.c │ │ │ │ │ ├── mtx.c │ │ │ │ │ ├── nstime.c │ │ │ │ │ ├── pack.c │ │ │ │ │ ├── pack.sh │ │ │ │ │ ├── pages.c │ │ │ │ │ ├── ph.c │ │ │ │ │ ├── prng.c │ │ │ │ │ ├── prof_accum.c │ │ │ │ │ ├── prof_accum.sh │ │ │ │ │ ├── prof_active.c │ │ │ │ │ ├── prof_active.sh │ │ │ │ │ ├── prof_gdump.c │ │ │ │ │ ├── prof_gdump.sh │ │ │ │ │ ├── prof_idump.c │ │ │ │ │ ├── prof_idump.sh │ │ │ │ │ ├── prof_reset.c │ │ │ │ │ ├── prof_reset.sh │ │ │ │ │ ├── prof_tctx.c │ │ │ │ │ ├── prof_tctx.sh │ │ │ │ │ ├── prof_thread_name.c │ │ │ │ │ ├── prof_thread_name.sh │ │ │ │ │ ├── ql.c │ │ │ │ │ ├── qr.c │ │ │ │ │ ├── rb.c │ │ │ │ │ ├── retained.c │ │ │ │ │ ├── rtree.c │ │ │ │ │ ├── size_classes.c │ │ │ │ │ ├── slab.c │ │ │ │ │ ├── smoothstep.c │ │ │ │ │ ├── spin.c │ │ │ │ │ ├── stats.c │ │ │ │ │ ├── stats_print.c │ │ │ │ │ ├── ticker.c │ │ │ │ │ ├── tsd.c │ │ │ │ │ ├── witness.c │ │ │ │ │ ├── zero.c │ │ │ │ │ └── zero.sh │ │ │ ├── lpeg │ │ │ │ ├── HISTORY │ │ │ │ ├── lpcap.c │ │ │ │ ├── lpcap.h │ │ │ │ ├── lpcode.c │ │ │ │ ├── lpcode.h │ │ │ │ ├── lpeg-128.gif │ │ │ │ ├── lpeg.html │ │ │ │ ├── lpprint.c │ │ │ │ ├── lpprint.h │ │ │ │ ├── lptree.c │ │ │ │ ├── lptree.h │ │ │ │ ├── lptypes.h │ │ │ │ ├── lpvm.c │ │ │ │ ├── lpvm.h │ │ │ │ ├── makefile │ │ │ │ ├── re.html │ │ │ │ ├── re.lua │ │ │ │ └── test.lua │ │ │ ├── lua-5.3.5 │ │ │ │ ├── Makefile │ │ │ │ ├── README │ │ │ │ ├── doc │ │ │ │ │ ├── contents.html │ │ │ │ │ ├── index.css │ │ │ │ │ ├── logo.gif │ │ │ │ │ ├── lua.1 │ │ │ │ │ ├── lua.css │ │ │ │ │ ├── luac.1 │ │ │ │ │ ├── manual.css │ │ │ │ │ ├── manual.html │ │ │ │ │ ├── osi-certified-72x60.png │ │ │ │ │ └── readme.html │ │ │ │ └── src │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── lapi.c │ │ │ │ │ ├── lapi.h │ │ │ │ │ ├── lapi.o │ │ │ │ │ ├── lauxlib.c │ │ │ │ │ ├── lauxlib.h │ │ │ │ │ ├── lauxlib.o │ │ │ │ │ ├── lbaselib.c │ │ │ │ │ ├── lbaselib.o │ │ │ │ │ ├── lbitlib.c │ │ │ │ │ ├── lbitlib.o │ │ │ │ │ ├── lcode.c │ │ │ │ │ ├── lcode.h │ │ │ │ │ ├── lcode.o │ │ │ │ │ ├── lcorolib.c │ │ │ │ │ ├── lcorolib.o │ │ │ │ │ ├── lctype.c │ │ │ │ │ ├── lctype.h │ │ │ │ │ ├── lctype.o │ │ │ │ │ ├── ldblib.c │ │ │ │ │ ├── ldblib.o │ │ │ │ │ ├── ldebug.c │ │ │ │ │ ├── ldebug.h │ │ │ │ │ ├── ldebug.o │ │ │ │ │ ├── ldo.c │ │ │ │ │ ├── ldo.h │ │ │ │ │ ├── ldo.o │ │ │ │ │ ├── ldump.c │ │ │ │ │ ├── ldump.o │ │ │ │ │ ├── lfunc.c │ │ │ │ │ ├── lfunc.h │ │ │ │ │ ├── lfunc.o │ │ │ │ │ ├── lgc.c │ │ │ │ │ ├── lgc.h │ │ │ │ │ ├── lgc.o │ │ │ │ │ ├── liblua.a │ │ │ │ │ ├── linit.c │ │ │ │ │ ├── linit.o │ │ │ │ │ ├── liolib.c │ │ │ │ │ ├── liolib.o │ │ │ │ │ ├── llex.c │ │ │ │ │ ├── llex.h │ │ │ │ │ ├── llex.o │ │ │ │ │ ├── llimits.h │ │ │ │ │ ├── lmathlib.c │ │ │ │ │ ├── lmathlib.o │ │ │ │ │ ├── lmem.c │ │ │ │ │ ├── lmem.h │ │ │ │ │ ├── lmem.o │ │ │ │ │ ├── loadlib.c │ │ │ │ │ ├── loadlib.o │ │ │ │ │ ├── lobject.c │ │ │ │ │ ├── lobject.h │ │ │ │ │ ├── lobject.o │ │ │ │ │ ├── lopcodes.c │ │ │ │ │ ├── lopcodes.h │ │ │ │ │ ├── lopcodes.o │ │ │ │ │ ├── loslib.c │ │ │ │ │ ├── loslib.o │ │ │ │ │ ├── lparser.c │ │ │ │ │ ├── lparser.h │ │ │ │ │ ├── lparser.o │ │ │ │ │ ├── lprefix.h │ │ │ │ │ ├── lstate.c │ │ │ │ │ ├── lstate.h │ │ │ │ │ ├── lstate.o │ │ │ │ │ ├── lstring.c │ │ │ │ │ ├── lstring.h │ │ │ │ │ ├── lstring.o │ │ │ │ │ ├── lstrlib.c │ │ │ │ │ ├── lstrlib.o │ │ │ │ │ ├── ltable.c │ │ │ │ │ ├── ltable.h │ │ │ │ │ ├── ltable.o │ │ │ │ │ ├── ltablib.c │ │ │ │ │ ├── ltablib.o │ │ │ │ │ ├── ltm.c │ │ │ │ │ ├── ltm.h │ │ │ │ │ ├── ltm.o │ │ │ │ │ ├── lua.c │ │ │ │ │ ├── lua.exe │ │ │ │ │ ├── lua.h │ │ │ │ │ ├── lua.hpp │ │ │ │ │ ├── lua.o │ │ │ │ │ ├── lua53.dll │ │ │ │ │ ├── luac.c │ │ │ │ │ ├── luac.exe │ │ │ │ │ ├── luac.o │ │ │ │ │ ├── luaconf.h │ │ │ │ │ ├── lualib.h │ │ │ │ │ ├── lundump.c │ │ │ │ │ ├── lundump.h │ │ │ │ │ ├── lundump.o │ │ │ │ │ ├── lutf8lib.c │ │ │ │ │ ├── lutf8lib.o │ │ │ │ │ ├── lvm.c │ │ │ │ │ ├── lvm.h │ │ │ │ │ ├── lvm.o │ │ │ │ │ ├── lzio.c │ │ │ │ │ ├── lzio.h │ │ │ │ │ └── lzio.o │ │ │ ├── lua-md5 │ │ │ │ ├── README │ │ │ │ ├── compat-5.2.c │ │ │ │ ├── compat-5.2.h │ │ │ │ ├── md5.c │ │ │ │ ├── md5.h │ │ │ │ └── md5lib.c │ │ │ ├── lua │ │ │ │ ├── Makefile │ │ │ │ ├── README │ │ │ │ ├── bit.so │ │ │ │ ├── lapi.c │ │ │ │ ├── lapi.h │ │ │ │ ├── lapi.o │ │ │ │ ├── lauxlib.c │ │ │ │ ├── lauxlib.h │ │ │ │ ├── lauxlib.o │ │ │ │ ├── lbaselib.c │ │ │ │ ├── lbaselib.o │ │ │ │ ├── lbitlib.c │ │ │ │ ├── lbitlib.o │ │ │ │ ├── lcode.c │ │ │ │ ├── lcode.h │ │ │ │ ├── lcode.o │ │ │ │ ├── lcorolib.c │ │ │ │ ├── lcorolib.o │ │ │ │ ├── lctype.c │ │ │ │ ├── lctype.h │ │ │ │ ├── lctype.o │ │ │ │ ├── ldblib.c │ │ │ │ ├── ldblib.o │ │ │ │ ├── ldebug.c │ │ │ │ ├── ldebug.h │ │ │ │ ├── ldebug.o │ │ │ │ ├── ldo.c │ │ │ │ ├── ldo.h │ │ │ │ ├── ldo.o │ │ │ │ ├── ldump.c │ │ │ │ ├── ldump.o │ │ │ │ ├── lfunc.c │ │ │ │ ├── lfunc.h │ │ │ │ ├── lfunc.o │ │ │ │ ├── lgc.c │ │ │ │ ├── lgc.h │ │ │ │ ├── lgc.o │ │ │ │ ├── liblua.a │ │ │ │ ├── linit.c │ │ │ │ ├── linit.o │ │ │ │ ├── liolib.c │ │ │ │ ├── liolib.o │ │ │ │ ├── llex.c │ │ │ │ ├── llex.h │ │ │ │ ├── llex.o │ │ │ │ ├── llimits.h │ │ │ │ ├── lmathlib.c │ │ │ │ ├── lmathlib.o │ │ │ │ ├── lmem.c │ │ │ │ ├── lmem.h │ │ │ │ ├── lmem.o │ │ │ │ ├── loadlib.c │ │ │ │ ├── loadlib.o │ │ │ │ ├── lobject.c │ │ │ │ ├── lobject.h │ │ │ │ ├── lobject.o │ │ │ │ ├── lopcodes.c │ │ │ │ ├── lopcodes.h │ │ │ │ ├── lopcodes.o │ │ │ │ ├── loslib.c │ │ │ │ ├── loslib.o │ │ │ │ ├── lparser.c │ │ │ │ ├── lparser.h │ │ │ │ ├── lparser.o │ │ │ │ ├── lprefix.h │ │ │ │ ├── lstate.c │ │ │ │ ├── lstate.h │ │ │ │ ├── lstate.o │ │ │ │ ├── lstring.c │ │ │ │ ├── lstring.h │ │ │ │ ├── lstring.o │ │ │ │ ├── lstrlib.c │ │ │ │ ├── lstrlib.o │ │ │ │ ├── ltable.c │ │ │ │ ├── ltable.h │ │ │ │ ├── ltable.o │ │ │ │ ├── ltablib.c │ │ │ │ ├── ltablib.o │ │ │ │ ├── ltm.c │ │ │ │ ├── ltm.h │ │ │ │ ├── ltm.o │ │ │ │ ├── lua │ │ │ │ ├── lua.c │ │ │ │ ├── lua.h │ │ │ │ ├── lua.hpp │ │ │ │ ├── lua.o │ │ │ │ ├── luac │ │ │ │ ├── luac.c │ │ │ │ ├── luac.o │ │ │ │ ├── luaconf.h │ │ │ │ ├── lualib.h │ │ │ │ ├── lundump.c │ │ │ │ ├── lundump.h │ │ │ │ ├── lundump.o │ │ │ │ ├── lutf8lib.c │ │ │ │ ├── lutf8lib.o │ │ │ │ ├── lvm.c │ │ │ │ ├── lvm.h │ │ │ │ ├── lvm.o │ │ │ │ ├── lzio.c │ │ │ │ ├── lzio.h │ │ │ │ └── lzio.o │ │ │ └── wssocket │ │ │ │ ├── lua-clientintsocket.c │ │ │ │ ├── lua-clientwebsocket.c │ │ │ │ ├── lua-intnetpack.c │ │ │ │ └── lua-websocketnetpack.c │ │ ├── Makefile │ │ ├── Makefile.patch.1 │ │ ├── Makefile.skynet │ │ ├── cservice │ │ │ ├── gate.so │ │ │ ├── harbor.so │ │ │ ├── logger.so │ │ │ └── snlua.so │ │ ├── luaclib │ │ │ ├── bgcrypto.so │ │ │ ├── bson.so │ │ │ ├── cjson.so │ │ │ ├── client.so │ │ │ ├── clientintsocket.so │ │ │ ├── clientwebsocket.so │ │ │ ├── intnetpack.so │ │ │ ├── lpeg.so │ │ │ ├── ltask.so │ │ │ ├── md5.so │ │ │ ├── pb.so │ │ │ ├── skynet.so │ │ │ ├── sproto.so │ │ │ ├── webclient.so │ │ │ └── websocketnetpack.so │ │ ├── lualib-src │ │ │ ├── hmac_sha2.c │ │ │ ├── hmac_sha2.h │ │ │ ├── lsha1.c │ │ │ ├── lua-bson.c │ │ │ ├── lua-clientsocket.c │ │ │ ├── lua-cluster.c │ │ │ ├── lua-crypt.c │ │ │ ├── lua-datasheet.c │ │ │ ├── lua-debugchannel.c │ │ │ ├── lua-memory.c │ │ │ ├── lua-mongo.c │ │ │ ├── lua-multicast.c │ │ │ ├── lua-mysqlaux.c │ │ │ ├── lua-netpack.c │ │ │ ├── lua-profile.c │ │ │ ├── lua-seri.c │ │ │ ├── lua-seri.h │ │ │ ├── lua-sharedata.c │ │ │ ├── lua-skynet.c │ │ │ ├── lua-socket.c │ │ │ ├── lua-stm.c │ │ │ ├── sha2.c │ │ │ ├── sha2.h │ │ │ └── sproto │ │ │ │ ├── README │ │ │ │ ├── README.md │ │ │ │ ├── lsproto.c │ │ │ │ ├── msvcint.h │ │ │ │ ├── sproto.c │ │ │ │ └── sproto.h │ │ ├── platform.mk │ │ ├── service-src │ │ │ ├── databuffer.h │ │ │ ├── hashid.h │ │ │ ├── service_gate.c │ │ │ ├── service_harbor.c │ │ │ ├── service_logger.c │ │ │ └── service_snlua.c │ │ ├── skynet │ │ └── skynet-src │ │ │ ├── atomic.h │ │ │ ├── luashrtbl.h │ │ │ ├── malloc_hook.c │ │ │ ├── malloc_hook.h │ │ │ ├── rwlock.h │ │ │ ├── skynet.h │ │ │ ├── skynet_daemon.c │ │ │ ├── skynet_daemon.h │ │ │ ├── skynet_env.c │ │ │ ├── skynet_env.h │ │ │ ├── skynet_error.c │ │ │ ├── skynet_handle.c │ │ │ ├── skynet_handle.h │ │ │ ├── skynet_harbor.c │ │ │ ├── skynet_harbor.h │ │ │ ├── skynet_imp.h │ │ │ ├── skynet_log.c │ │ │ ├── skynet_log.h │ │ │ ├── skynet_main.c │ │ │ ├── skynet_malloc.h │ │ │ ├── skynet_module.c │ │ │ ├── skynet_module.h │ │ │ ├── skynet_monitor.c │ │ │ ├── skynet_monitor.h │ │ │ ├── skynet_mq.c │ │ │ ├── skynet_mq.h │ │ │ ├── skynet_server.c │ │ │ ├── skynet_server.h │ │ │ ├── skynet_socket.c │ │ │ ├── skynet_socket.h │ │ │ ├── skynet_start.c │ │ │ ├── skynet_timer.c │ │ │ ├── skynet_timer.h │ │ │ ├── socket_epoll.h │ │ │ ├── socket_kqueue.h │ │ │ ├── socket_poll.h │ │ │ ├── socket_server.c │ │ │ ├── socket_server.h │ │ │ └── spinlock.h │ └── test │ │ ├── pingserver.lua │ │ ├── sharemap.sp │ │ ├── testbson.lua │ │ ├── testcoroutine.lua │ │ ├── testdatacenter.lua │ │ ├── testdatasheet.lua │ │ ├── testdeadcall.lua │ │ ├── testdeadloop.lua │ │ ├── testdns.lua │ │ ├── testecho.lua │ │ ├── testendless.lua │ │ ├── testharborlink.lua │ │ ├── testhttp.lua │ │ ├── testmemlimit.lua │ │ ├── testmongodb.lua │ │ ├── testmulticast.lua │ │ ├── testmulticast2.lua │ │ ├── testmysql.lua │ │ ├── testoverload.lua │ │ ├── testping.lua │ │ ├── testpipeline.lua │ │ ├── testqueue.lua │ │ ├── testredis.lua │ │ ├── testredis2.lua │ │ ├── testrediscluster.lua │ │ ├── testresponse.lua │ │ ├── testservice │ │ ├── init.lua │ │ └── kvdb.lua │ │ ├── testsha.lua │ │ ├── testsm.lua │ │ ├── testsocket.lua │ │ ├── teststm.lua │ │ ├── testterm.lua │ │ ├── testtimeout.lua │ │ ├── testtimer.lua │ │ ├── testudp.lua │ │ └── time.lua ├── start_expamples.sh ├── start_ykserver_center.sh ├── start_ykserver_gate.sh ├── test.sh ├── ykserver │ ├── config │ │ ├── config_center │ │ ├── config_gate │ │ └── config_public │ ├── global │ │ ├── errorCode.lua │ │ ├── preload.lua │ │ ├── protoMap.lua │ │ ├── serverType.lua │ │ ├── serviceNames.lua │ │ └── test_aes.lua │ ├── lualib │ │ ├── aeslua.lua │ │ ├── class.lua │ │ ├── distributeClientMsg.lua │ │ ├── gamesession.lua │ │ ├── json.lua │ │ ├── logger.lua │ │ ├── logging.lua │ │ ├── names.lua │ │ ├── nodeMgr.lua │ │ ├── node_monitor.lua │ │ ├── protoUtil.lua │ │ ├── simpleClass.lua │ │ ├── sqlHelp.lua │ │ ├── timer.lua │ │ ├── utils.lua │ │ ├── uuid.lua │ │ ├── wechatRequest.lua │ │ └── wsgateserver.lua │ ├── protos │ │ └── packbase.proto │ ├── sercenter │ │ └── main.lua │ ├── sergate │ │ ├── authser │ │ │ ├── ctrl.lua │ │ │ ├── impl.lua │ │ │ └── main.lua │ │ ├── chatserver │ │ │ ├── ctrl.lua │ │ │ ├── impl.lua │ │ │ └── main.lua │ │ ├── dbserver │ │ │ ├── config │ │ │ │ └── cfg.lua │ │ │ ├── data │ │ │ │ ├── accountData.lua │ │ │ │ ├── changeDataFlag.lua │ │ │ │ ├── dataBase.lua │ │ │ │ ├── dataMode.lua │ │ │ │ ├── userData.lua │ │ │ │ └── wxData.lua │ │ │ ├── datamgr │ │ │ │ ├── authDB.lua │ │ │ │ └── dataSerUtil.lua │ │ │ ├── main.lua │ │ │ └── mysql_db.lua │ │ ├── httpser │ │ │ ├── handlehttp │ │ │ │ ├── handlerAccount.lua │ │ │ │ └── handlerWXLogin.lua │ │ │ ├── httpagent │ │ │ │ └── main.lua │ │ │ └── main.lua │ │ ├── main.lua │ │ ├── test │ │ │ ├── impl.lua │ │ │ └── main.lua │ │ └── ykwsgate.lua │ └── service │ │ ├── NodeMonitord.lua │ │ ├── client_log.lua │ │ ├── command_base.lua │ │ ├── server_log.lua │ │ ├── service_base.lua │ │ └── webclientser.lua └── 打包.bat └── luac5.3.5 ├── luac_32.exe └── luac_64.exe /1542035818146.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/1542035818146.png -------------------------------------------------------------------------------- /1542036421603.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/1542036421603.png -------------------------------------------------------------------------------- /1542038237332.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/1542038237332.png -------------------------------------------------------------------------------- /Server/.idea/dictionaries/Administrator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Server/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /Server/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Server/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Server/log/center.log: -------------------------------------------------------------------------------- 1 | [:00000001] LAUNCH logger ./log/center.log 2 | [:00000002] LAUNCH snlua bootstrap 3 | [:00000003] LAUNCH snlua launcher 4 | [:00000004] LAUNCH snlua cdummy 5 | [:00000005] LAUNCH harbor 0 4 6 | [:00000006] LAUNCH snlua datacenterd 7 | [:00000007] LAUNCH snlua service_mgr 8 | [:00000008] LAUNCH snlua main 9 | [:00000008] ------debug_console---------- 10 | [:00000009] LAUNCH snlua debug_console 7000 11 | [:00000009] Start debug console at 127.0.0.1:7000 12 | [:0000000a] LAUNCH snlua server_log 13 | [:0000000b] LAUNCH snlua NodeMonitord 14 | [:0000000c] LAUNCH snlua clusterd 15 | [:0000000d] LAUNCH snlua gate 16 | [:0000000d] Listen on 0.0.0.0:9000 17 | [:00000008] centerserver start! 18 | [:00000008] KILL self 19 | [:00000002] KILL self 20 | -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/cservice/gate.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/cservice/gate.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/cservice/harbor.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/cservice/harbor.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/cservice/logger.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/cservice/logger.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/cservice/snlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/cservice/snlua.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/bgcrypto.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/bgcrypto.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/bson.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/bson.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/cjson.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/cjson.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/client.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/client.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/clientintsocket.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/clientintsocket.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/clientwebsocket.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/clientwebsocket.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/intnetpack.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/intnetpack.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/lpeg.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/lpeg.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/ltask.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/ltask.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/md5.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/md5.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/pb.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/pb.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/skynet.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/skynet.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/sproto.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/sproto.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/webclient.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/webclient.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/luaclib/websocketnetpack.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/luaclib/websocketnetpack.so -------------------------------------------------------------------------------- /Server/skynet/bin/liunx/skynet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/liunx/skynet -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/gate.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/gate.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/gate.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/gate.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/gate.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/gate.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/gate.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/gate.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/gate.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/gate.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/harbor.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/harbor.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/harbor.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/harbor.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/harbor.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/harbor.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/harbor.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/harbor.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/harbor.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/harbor.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/logger.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/logger.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/logger.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/logger.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/logger.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/logger.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/logger.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/logger.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/logger.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/logger.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/snlua.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/snlua.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/snlua.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/snlua.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/snlua.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/snlua.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/snlua.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/snlua.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/cservice/snlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/cservice/snlua.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/libtcmalloc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/libtcmalloc.dll -------------------------------------------------------------------------------- /Server/skynet/bin/win32/libtcmalloc.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/libtcmalloc.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/lua5.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/lua5.dll -------------------------------------------------------------------------------- /Server/skynet/bin/win32/lua5.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/lua5.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/lua5.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/lua5.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/lua5.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/lua5.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/lua5.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/lua5.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/bson.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/bson.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/bson.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/bson.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/bson.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/bson.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/bson.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/bson.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/bson.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/bson.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/cjson.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/cjson.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/cjson.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/cjson.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/cjson.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/cjson.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/cjson.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/cjson.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/cjson.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/cjson.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/client/crypt.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/client/crypt.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/client/crypt.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/client/crypt.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/client/crypt.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/client/crypt.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/client/socket.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/client/socket.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/client/socket.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/client/socket.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/client/socket.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/client/socket.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/clientsocket.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/clientsocket.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/clientsocket.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/clientsocket.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/cluster.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/cluster.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/cluster.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/cluster.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/crypt.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/crypt.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/crypt.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/crypt.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/debugchannel.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/debugchannel.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/debugchannel.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/debugchannel.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/lpeg.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/lpeg.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/lpeg.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/lpeg.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/lpeg.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/lpeg.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/lpeg.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/lpeg.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/lpeg.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/lpeg.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/ltask.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/ltask.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/ltask.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/ltask.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/ltask.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/ltask.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/ltask.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/ltask.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/ltask.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/ltask.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/md5.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/md5.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/md5.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/md5.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/md5.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/md5.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/md5.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/md5.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/md5.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/md5.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/memory.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/memory.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/memory.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/memory.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/mongo.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/mongo.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/mongo.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/mongo.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/multicast.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/multicast.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/multicast.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/multicast.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/mysqlaux.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/mysqlaux.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/mysqlaux.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/mysqlaux.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/mysqlaux.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/mysqlaux.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/mysqlaux.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/mysqlaux.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/mysqlaux.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/mysqlaux.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/netpack.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/netpack.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/netpack.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/netpack.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/profile.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/profile.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/profile.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/profile.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/profile.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/profile.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/profile.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/profile.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/profile.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/profile.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/protobuf.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/protobuf.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/protobuf.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/protobuf.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/protobuf.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/protobuf.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/protobuf.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/protobuf.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/protobuf.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/protobuf.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/sharedata.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/sharedata.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/sharedata.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/sharedata.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/cluster/core.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/cluster/core.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/cluster/core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/cluster/core.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/cluster/core.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/cluster/core.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/core.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/core.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/core.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/core.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/core.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/debugchannel.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/debugchannel.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/debugchannel.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/debugchannel.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/debugchannel.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/debugchannel.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/memory.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/memory.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/memory.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/memory.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/memory.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/memory.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/mongo/driver.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/mongo/driver.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/mongo/driver.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/mongo/driver.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/mongo/driver.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/mongo/driver.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/multicast/core.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/multicast/core.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/multicast/core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/multicast/core.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/multicast/core.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/multicast/core.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/netpack.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/netpack.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/netpack.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/netpack.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/netpack.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/netpack.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/profile.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/profile.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/profile.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/profile.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/sharedata/core.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/sharedata/core.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/sharedata/core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/sharedata/core.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/sharedata/core.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/sharedata/core.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/socketdriver.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/socketdriver.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/socketdriver.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/socketdriver.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/socketdriver.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/socketdriver.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/stm.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/stm.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/stm.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/stm.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/skynet/stm.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/skynet/stm.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/socketdriver.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/socketdriver.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/socketdriver.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/socketdriver.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/sproto.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/sproto.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/sproto.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/sproto.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/sproto.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/sproto.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/sproto.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/sproto.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/sproto.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/sproto.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/sproto/sproto.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/sproto/sproto.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/sproto/sproto.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/sproto/sproto.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/sproto/sproto.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/sproto/sproto.so -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/stm.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/stm.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/luaclib/stm.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/luaclib/stm.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/posix.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/posix.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/pthread.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/pthread.dll -------------------------------------------------------------------------------- /Server/skynet/bin/win32/pthread.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/pthread.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/skynet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/skynet.exe -------------------------------------------------------------------------------- /Server/skynet/bin/win32/skynet.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/skynet.exp -------------------------------------------------------------------------------- /Server/skynet/bin/win32/skynet.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/skynet.ilk -------------------------------------------------------------------------------- /Server/skynet/bin/win32/skynet.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/skynet.lib -------------------------------------------------------------------------------- /Server/skynet/bin/win32/skynet.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/skynet.pdb -------------------------------------------------------------------------------- /Server/skynet/bin/win32/skynet.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/bin/win32/skynet.so -------------------------------------------------------------------------------- /Server/skynet/examples/abort.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | require "skynet.manager" -- import skynet.abort 3 | 4 | skynet.abort() 5 | -------------------------------------------------------------------------------- /Server/skynet/examples/checkdeadloop.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local list = {} 4 | 5 | local function timeout_check(ti) 6 | if not next(list) then 7 | return 8 | end 9 | skynet.sleep(ti) -- sleep 10 sec 10 | for k,v in pairs(list) do 11 | skynet.error("timout",ti,k,v) 12 | end 13 | end 14 | 15 | skynet.start(function() 16 | skynet.error("ping all") 17 | local list_ret = skynet.call(".launcher", "lua", "LIST") 18 | for addr, desc in pairs(list_ret) do 19 | list[addr] = desc 20 | skynet.fork(function() 21 | skynet.call(addr,"debug","INFO") 22 | list[addr] = nil 23 | end) 24 | end 25 | skynet.sleep(0) 26 | timeout_check(100) 27 | timeout_check(400) 28 | timeout_check(500) 29 | skynet.exit() 30 | end) 31 | -------------------------------------------------------------------------------- /Server/skynet/examples/cluster1.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local cluster = require "skynet.cluster" 3 | local snax = require "skynet.snax" 4 | 5 | skynet.start(function() 6 | cluster.reload { 7 | db = "127.0.0.1:2528", 8 | db2 = "127.0.0.1:2529", 9 | } 10 | 11 | local sdb = skynet.newservice("simpledb") 12 | -- register name "sdb" for simpledb, you can use cluster.query() later. 13 | -- See cluster2.lua 14 | cluster.register("sdb", sdb) 15 | 16 | print(skynet.call(sdb, "lua", "SET", "a", "foobar")) 17 | print(skynet.call(sdb, "lua", "SET", "b", "foobar2")) 18 | print(skynet.call(sdb, "lua", "GET", "a")) 19 | print(skynet.call(sdb, "lua", "GET", "b")) 20 | cluster.open "db" 21 | cluster.open "db2" 22 | -- unique snax service 23 | snax.uniqueservice "pingserver" 24 | end) 25 | -------------------------------------------------------------------------------- /Server/skynet/examples/clustername.lua: -------------------------------------------------------------------------------- 1 | __nowaiting = true -- If you turn this flag off, cluster.call would block when node name is absent 2 | 3 | db = "127.0.0.1:2528" 4 | db2 = "127.0.0.1:2529" 5 | -------------------------------------------------------------------------------- /Server/skynet/examples/config: -------------------------------------------------------------------------------- 1 | include "config.path" 2 | 3 | -- preload = ".examples/preload.lua" -- run preload.lua before every lua service run 4 | thread = 8 5 | logger = nil 6 | logpath = "." 7 | harbor = 0 8 | --master = "127.0.0.1:2013" 9 | --standalone = "0.0.0.0:2013" 10 | start = "main" -- main script 11 | bootstrap = "snlua bootstrap" -- The service for bootstrap 12 | snax = skynetroot.."examples/?.lua;"..skynetroot.."test/?.lua" 13 | -------------------------------------------------------------------------------- /Server/skynet/examples/config.c1: -------------------------------------------------------------------------------- 1 | thread = 8 2 | logger = nil 3 | harbor = 0 4 | start = "cluster1" 5 | bootstrap = "snlua bootstrap" -- The service for bootstrap 6 | luaservice = "./service/?.lua;./test/?.lua;./examples/?.lua" 7 | lualoader = "lualib/loader.lua" 8 | cpath = "./cservice/?.so" 9 | -- use cluster.reload instead, see cluster1.lua 10 | -- cluster = "./examples/clustername.lua" 11 | snax = "./test/?.lua" 12 | -------------------------------------------------------------------------------- /Server/skynet/examples/config.c2: -------------------------------------------------------------------------------- 1 | thread = 8 2 | logger = nil 3 | harbor = 0 4 | start = "cluster2" 5 | bootstrap = "snlua bootstrap" -- The service for bootstrap 6 | luaservice = "./service/?.lua;./test/?.lua;./examples/?.lua" 7 | lualoader = "lualib/loader.lua" 8 | cpath = "./cservice/?.so" 9 | cluster = "./examples/clustername.lua" 10 | snax = "./test/?.lua" 11 | -------------------------------------------------------------------------------- /Server/skynet/examples/config.login: -------------------------------------------------------------------------------- 1 | thread = 8 2 | logger = nil 3 | harbor = 0 4 | start = "main" 5 | bootstrap = "snlua bootstrap" -- The service for bootstrap 6 | luaservice = "./service/?.lua;./examples/login/?.lua" 7 | lualoader = "lualib/loader.lua" 8 | cpath = "./cservice/?.so" 9 | -------------------------------------------------------------------------------- /Server/skynet/examples/config.mc: -------------------------------------------------------------------------------- 1 | root = "./" 2 | thread = 8 3 | logger = nil 4 | harbor = 2 5 | address = "127.0.0.1:2527" 6 | master = "127.0.0.1:2013" 7 | start = "testmulticast2" -- main script 8 | bootstrap = "snlua bootstrap" -- The service for bootstrap 9 | --standalone = "0.0.0.0:2013" 10 | luaservice = root.."service/?.lua;"..root.."test/?.lua;"..root.."examples/?.lua" 11 | lualoader = "lualib/loader.lua" 12 | -- preload = "./examples/preload.lua" -- run preload.lua before every lua service run 13 | snax = root.."examples/?.lua;"..root.."test/?.lua" 14 | cpath = root.."cservice/?.so" 15 | -------------------------------------------------------------------------------- /Server/skynet/examples/config.mysql: -------------------------------------------------------------------------------- 1 | root = "./" 2 | thread = 8 3 | logger = nil 4 | harbor = 0 5 | start = "main_mysql" -- main script 6 | bootstrap = "snlua bootstrap" -- The service for bootstrap 7 | luaservice = root.."service/?.lua;"..root.."test/?.lua;"..root.."examples/?.lua" 8 | lualoader = "lualib/loader.lua" 9 | snax = root.."examples/?.lua;"..root.."test/?.lua" 10 | cpath = root.."cservice/?.so" 11 | -- daemon = "./skynet.pid" 12 | -------------------------------------------------------------------------------- /Server/skynet/examples/config.path: -------------------------------------------------------------------------------- 1 | platform="liunx" 2 | skynetroot= "./skynet/" 3 | 4 | luaservice = skynetroot.."service/?.lua;" 5 | ..skynetroot.."test/?.lua;" 6 | ..skynetroot.."examples/?.lua;" 7 | ..skynetroot.."test/?/init.lua" 8 | 9 | lualoader = skynetroot .. "lualib/loader.lua" 10 | 11 | lua_path = skynetroot.."lualib/?.lua;" 12 | ..skynetroot.."lualib/?/init.lua;" 13 | ..skynetroot.."examples/?.lua;" 14 | ..skynetroot.."test/?.lua;" 15 | ..skynetroot.."test/?/init.lua" 16 | 17 | if platform == "win32" then 18 | lua_cpath = skynetroot.."bin/win32/luaclib/?.so;" 19 | cpath = "./skynet/bin/win32/cservice/?.so" 20 | else 21 | lua_cpath = skynetroot.."bin/liunx/luaclib/?.so;" 22 | cpath = "./skynet/bin/liunx/cservice/?.so" 23 | end 24 | snax = skynetroot.."examples/?.lua;"..skynetroot.."test/?.lua" 25 | 26 | -------------------------------------------------------------------------------- /Server/skynet/examples/config.userlog: -------------------------------------------------------------------------------- 1 | root = "./" 2 | thread = 8 3 | logger = "userlog" 4 | logservice = "snlua" 5 | logpath = "." 6 | harbor = 0 7 | start = "main" -- main script 8 | bootstrap = "snlua bootstrap" -- The service for bootstrap 9 | luaservice = root.."service/?.lua;"..root.."test/?.lua;"..root.."examples/?.lua" 10 | lualoader = "lualib/loader.lua" 11 | -- preload = "./examples/preload.lua" -- run preload.lua before every lua service run 12 | snax = root.."examples/?.lua;"..root.."test/?.lua" 13 | -- snax_interface_g = "snax_g" 14 | cpath = root.."cservice/?.so" 15 | -- daemon = "./skynet.pid" 16 | -------------------------------------------------------------------------------- /Server/skynet/examples/config_log: -------------------------------------------------------------------------------- 1 | thread = 8 2 | mqueue = 256 3 | cpath = "./cservice/?.so" 4 | logger = nil 5 | harbor = 2 6 | address = "127.0.0.1:2527" 7 | master = "127.0.0.1:2013" 8 | start = "main_log" 9 | luaservice ="./service/?.lua;./test/?.lua;./examples/?.lua" 10 | snax = "./examples/?.lua;./test/?.lua" 11 | -------------------------------------------------------------------------------- /Server/skynet/examples/globallog.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | require "skynet.manager" -- import skynet.register 3 | 4 | skynet.start(function() 5 | skynet.dispatch("lua", function(session, address, ...) 6 | print("[GLOBALLOG]", skynet.address(address), ...) 7 | end) 8 | skynet.register ".log" 9 | skynet.register "LOG" 10 | end) 11 | -------------------------------------------------------------------------------- /Server/skynet/examples/injectlaunch.lua: -------------------------------------------------------------------------------- 1 | if not _P then 2 | print[[ 3 | This file is examples to show how to inject code into lua service. 4 | It is used to inject into launcher service to change the command.LAUNCH to command.LOGLAUNCH. 5 | telnet the debug_console service (nc 127.0.0.1 8000), and run: 6 | inject 3 examples/injectlaunch.lua -- 3 means launcher service 7 | ]] 8 | return 9 | end 10 | local command = _P.lua.command 11 | 12 | if command.RAWLAUNCH then 13 | command.LAUNCH, command.RAWLAUNCH = command.RAWLAUNCH 14 | print "restore command.LAUNCH" 15 | else 16 | command.RAWLAUNCH = command.LAUNCH 17 | command.LAUNCH = command.LOGLAUNCH 18 | print "replace command.LAUNCH" 19 | end 20 | -------------------------------------------------------------------------------- /Server/skynet/examples/login/main.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | skynet.start(function() 4 | local loginserver = skynet.newservice("logind") 5 | local gate = skynet.newservice("gated", loginserver) 6 | 7 | skynet.call(gate, "lua", "open" , { 8 | port = 8888, 9 | maxclient = 64, 10 | servername = "sample", 11 | }) 12 | end) 13 | -------------------------------------------------------------------------------- /Server/skynet/examples/main.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local sprotoloader = require "sprotoloader" 3 | 4 | local max_client = 64 5 | 6 | skynet.start(function() 7 | skynet.error("Server start") 8 | --local console = skynet.newservice("console") 9 | skynet.uniqueservice("protoloader") 10 | --if not skynet.getenv "daemon" then 11 | -- local console = skynet.newservice("console") 12 | --end 13 | skynet.newservice("debug_console",8000) 14 | skynet.newservice("simpledb") 15 | local watchdog = skynet.newservice("watchdog") 16 | skynet.call(watchdog, "lua", "start", { 17 | port = 8888, 18 | maxclient = max_client, 19 | nodelay = true, 20 | }) 21 | skynet.error("Watchdog listen on", 8888) 22 | skynet.exit() 23 | end) 24 | -------------------------------------------------------------------------------- /Server/skynet/examples/main_log.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local harbor = require "skynet.harbor" 3 | require "skynet.manager" -- import skynet.monitor 4 | 5 | local function monitor_master() 6 | harbor.linkmaster() 7 | print("master is down") 8 | skynet.exit() 9 | end 10 | 11 | skynet.start(function() 12 | print("Log server start") 13 | skynet.monitor "simplemonitor" 14 | local log = skynet.newservice("globallog") 15 | skynet.fork(monitor_master) 16 | end) 17 | 18 | -------------------------------------------------------------------------------- /Server/skynet/examples/main_mysql.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | 4 | skynet.start(function() 5 | print("Main Server start") 6 | local console = skynet.newservice("testmysql") 7 | 8 | print("Main Server exit") 9 | skynet.exit() 10 | end) 11 | -------------------------------------------------------------------------------- /Server/skynet/examples/preload.lua: -------------------------------------------------------------------------------- 1 | -- This file will execute before every lua service start 2 | -- See config 3 | 4 | print("PRELOAD", ...) 5 | 6 | -------------------------------------------------------------------------------- /Server/skynet/examples/proto.lua: -------------------------------------------------------------------------------- 1 | local sprotoparser = require "sprotoparser" 2 | 3 | local proto = {} 4 | 5 | proto.c2s = sprotoparser.parse [[ 6 | .package { 7 | type 0 : integer 8 | session 1 : integer 9 | } 10 | 11 | handshake 1 { 12 | response { 13 | msg 0 : string 14 | } 15 | } 16 | 17 | get 2 { 18 | request { 19 | what 0 : string 20 | } 21 | response { 22 | result 0 : string 23 | } 24 | } 25 | 26 | set 3 { 27 | request { 28 | what 0 : string 29 | value 1 : string 30 | } 31 | } 32 | 33 | quit 4 {} 34 | 35 | ]] 36 | 37 | proto.s2c = sprotoparser.parse [[ 38 | .package { 39 | type 0 : integer 40 | session 1 : integer 41 | } 42 | 43 | heartbeat 1 {} 44 | ]] 45 | 46 | return proto 47 | -------------------------------------------------------------------------------- /Server/skynet/examples/protoloader.lua: -------------------------------------------------------------------------------- 1 | -- module proto as examples/proto.lua 2 | -- package.path = "./examples/?.lua;" .. package.path 3 | 4 | local skynet = require "skynet" 5 | local sprotoparser = require "sprotoparser" 6 | local sprotoloader = require "sprotoloader" 7 | local proto = require "proto" 8 | 9 | skynet.start(function() 10 | sprotoloader.save(proto.c2s, 1) 11 | sprotoloader.save(proto.s2c, 2) 12 | -- don't call skynet.exit() , because sproto.core may unload and the global slot become invalid 13 | end) 14 | -------------------------------------------------------------------------------- /Server/skynet/examples/simpledb.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | require "skynet.manager" -- import skynet.register 3 | local db = {} 4 | 5 | local command = {} 6 | 7 | function command.GET(key) 8 | return db[key] 9 | end 10 | 11 | function command.SET(key, value) 12 | local last = db[key] 13 | db[key] = value 14 | return last 15 | end 16 | 17 | skynet.start(function() 18 | skynet.dispatch("lua", function(session, address, cmd, ...) 19 | cmd = cmd:upper() 20 | if cmd == "PING" then 21 | assert(session == 0) 22 | local str = (...) 23 | if #str > 20 then 24 | str = str:sub(1,20) .. "...(" .. #str .. ")" 25 | end 26 | skynet.error(string.format("%s ping %s", skynet.address(address), str)) 27 | return 28 | end 29 | local f = command[cmd] 30 | if f then 31 | skynet.ret(skynet.pack(f(...))) 32 | else 33 | error(string.format("Unknown command %s", tostring(cmd))) 34 | end 35 | end) 36 | -- skynet.traceproto("lua", false) -- true off tracelog 37 | skynet.register "SIMPLEDB" 38 | end) 39 | -------------------------------------------------------------------------------- /Server/skynet/examples/simplemonitor.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | -- It's a simple service exit monitor, you can do something more when a service exit. 4 | 5 | local service_map = {} 6 | 7 | skynet.register_protocol { 8 | name = "client", 9 | id = skynet.PTYPE_CLIENT, -- PTYPE_CLIENT = 3 10 | unpack = function() end, 11 | dispatch = function(_, address) 12 | local w = service_map[address] 13 | if w then 14 | for watcher in pairs(w) do 15 | skynet.redirect(watcher, address, "error", 0, "") 16 | end 17 | service_map[address] = false 18 | end 19 | end 20 | } 21 | 22 | local function monitor(session, watcher, command, service) 23 | assert(command, "WATCH") 24 | local w = service_map[service] 25 | if not w then 26 | if w == false then 27 | skynet.ret(skynet.pack(false)) 28 | return 29 | end 30 | w = {} 31 | service_map[service] = w 32 | end 33 | w[watcher] = true 34 | skynet.ret(skynet.pack(true)) 35 | end 36 | 37 | skynet.start(function() 38 | skynet.dispatch("lua", monitor) 39 | end) 40 | -------------------------------------------------------------------------------- /Server/skynet/examples/userlog.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | require "skynet.manager" 3 | 4 | skynet.register_protocol { 5 | name = "text", 6 | id = skynet.PTYPE_TEXT, 7 | unpack = skynet.tostring, 8 | dispatch = function(_, address, msg) 9 | print(string.format(":%08x(%.2f): %s", address, skynet.time(), msg)) 10 | end 11 | } 12 | 13 | skynet.register_protocol { 14 | name = "SYSTEM", 15 | id = skynet.PTYPE_SYSTEM, 16 | unpack = function(...) return ... end, 17 | dispatch = function() 18 | -- reopen signal 19 | print("SIGHUP") 20 | end 21 | } 22 | 23 | skynet.start(function() 24 | skynet.register ".logger" 25 | end) -------------------------------------------------------------------------------- /Server/skynet/examples/wsconfig: -------------------------------------------------------------------------------- 1 | root = "./" 2 | thread = 8 3 | logger = nil 4 | logpath = "." 5 | harbor = 0 6 | start = "wsmain" -- main script 7 | bootstrap = "snlua bootstrap" -- The service for bootstrap 8 | luaservice = root.."service/?.lua;"..root.."test/?.lua;"..root.."examples/?.lua" 9 | lualoader = "lualib/loader.lua" 10 | snax = root.."examples/?.lua;"..root.."test/?.lua" 11 | cpath = root.."cservice/?.so" 12 | -------------------------------------------------------------------------------- /Server/skynet/examples/wsmain.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local sprotoloader = require "sprotoloader" 3 | 4 | local max_client = 64 5 | 6 | skynet.start(function() 7 | print("Server start") 8 | skynet.uniqueservice("protoloader") 9 | local console = skynet.newservice("console") 10 | skynet.newservice("debug_console",8000) 11 | skynet.newservice("simpledb") 12 | local watchdog = skynet.newservice("wswatchdog") 13 | skynet.call(watchdog, "lua", "start", { 14 | port = 8888, 15 | maxclient = max_client, 16 | nodelay = true, 17 | }) 18 | print("Watchdog listen on ", 8888) 19 | 20 | skynet.exit() 21 | end) 22 | -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/cluster.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.cluster" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/crypt.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.crypt" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/datacenter.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.datacenter" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/dns.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.dns" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/memory.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.memory" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/mongo.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.db.mongo" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/mqueue.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.mqueue" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/multicast.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.multicast" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/mysql.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.db.mysql" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/netpack.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.netpack" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/profile.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.profile" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/redis.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.db.redis" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/sharedata.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.sharedata" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/sharemap.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.sharemap" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/snax.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.snax" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/socket.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.socket" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/socketchannel.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.socketchannel" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/socketdriver.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.socketdriver" -------------------------------------------------------------------------------- /Server/skynet/lualib/compat10/stm.lua: -------------------------------------------------------------------------------- 1 | return require "skynet.stm" -------------------------------------------------------------------------------- /Server/skynet/lualib/http/url.lua: -------------------------------------------------------------------------------- 1 | local url = {} 2 | 3 | local function decode_func(c) 4 | return string.char(tonumber(c, 16)) 5 | end 6 | 7 | local function decode(str) 8 | local str = str:gsub('+', ' ') 9 | return str:gsub("%%(..)", decode_func) 10 | end 11 | 12 | function url.parse(u) 13 | local path,query = u:match "([^?]*)%??(.*)" 14 | if path then 15 | path = decode(path) 16 | end 17 | return path, query 18 | end 19 | 20 | function url.parse_query(q) 21 | local r = {} 22 | for k,v in q:gmatch "(.-)=([^&]*)&?" do 23 | r[decode(k)] = decode(v) 24 | end 25 | return r 26 | end 27 | 28 | return url 29 | -------------------------------------------------------------------------------- /Server/skynet/lualib/skynet/datacenter.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local datacenter = {} 4 | 5 | function datacenter.get(...) 6 | return skynet.call("DATACENTER", "lua", "QUERY", ...) 7 | end 8 | 9 | function datacenter.set(...) 10 | return skynet.call("DATACENTER", "lua", "UPDATE", ...) 11 | end 12 | 13 | function datacenter.wait(...) 14 | return skynet.call("DATACENTER", "lua", "WAIT", ...) 15 | end 16 | 17 | return datacenter 18 | 19 | -------------------------------------------------------------------------------- /Server/skynet/lualib/skynet/harbor.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local harbor = {} 4 | 5 | function harbor.globalname(name, handle) 6 | handle = handle or skynet.self() 7 | skynet.send(".cslave", "lua", "REGISTER", name, handle) 8 | end 9 | 10 | function harbor.queryname(name) 11 | return skynet.call(".cslave", "lua", "QUERYNAME", name) 12 | end 13 | 14 | function harbor.link(id) 15 | skynet.call(".cslave", "lua", "LINK", id) 16 | end 17 | 18 | function harbor.connect(id) 19 | skynet.call(".cslave", "lua", "CONNECT", id) 20 | end 21 | 22 | function harbor.linkmaster() 23 | skynet.call(".cslave", "lua", "LINKMASTER") 24 | end 25 | 26 | return harbor 27 | -------------------------------------------------------------------------------- /Server/skynet/lualib/skynet/queue.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local coroutine = coroutine 3 | local xpcall = xpcall 4 | local traceback = debug.traceback 5 | local table = table 6 | 7 | function skynet.queue() 8 | local current_thread 9 | local ref = 0 10 | local thread_queue = {} 11 | 12 | local function xpcall_ret(ok, ...) 13 | ref = ref - 1 14 | if ref == 0 then 15 | current_thread = table.remove(thread_queue,1) 16 | if current_thread then 17 | skynet.wakeup(current_thread) 18 | end 19 | end 20 | assert(ok, (...)) 21 | return ... 22 | end 23 | 24 | return function(f, ...) 25 | local thread = coroutine.running() 26 | if current_thread and current_thread ~= thread then 27 | table.insert(thread_queue, thread) 28 | skynet.wait() 29 | assert(ref == 0) -- current_thread == thread 30 | end 31 | current_thread = thread 32 | 33 | ref = ref + 1 34 | return xpcall_ret(xpcall(f, traceback, ...)) 35 | end 36 | end 37 | 38 | return skynet.queue 39 | -------------------------------------------------------------------------------- /Server/skynet/lualib/skynet/reload.lua: -------------------------------------------------------------------------------- 1 | local core = require "skynet.reload.core" 2 | local skynet = require "skynet" 3 | 4 | local function reload(...) 5 | local args = SERVICE_NAME .. " " .. table.concat({...}, " ") 6 | print(args) 7 | end 8 | 9 | return reload 10 | -------------------------------------------------------------------------------- /Server/skynet/lualib/sprotoloader.lua: -------------------------------------------------------------------------------- 1 | local parser = require "sprotoparser" 2 | local core = require "sproto.core" 3 | local sproto = require "sproto" 4 | 5 | local loader = {} 6 | 7 | function loader.register(filename, index) 8 | local f = assert(io.open(filename), "Can't open sproto file") 9 | local data = f:read "a" 10 | f:close() 11 | local sp = core.newproto(parser.parse(data)) 12 | core.saveproto(sp, index) 13 | end 14 | 15 | function loader.save(bin, index) 16 | local sp = core.newproto(bin) 17 | core.saveproto(sp, index) 18 | end 19 | 20 | function loader.load(index) 21 | local sp = core.loadproto(index) 22 | -- no __gc in metatable 23 | return sproto.sharenew(sp) 24 | end 25 | 26 | return loader 27 | 28 | -------------------------------------------------------------------------------- /Server/skynet/service/clusterproxy.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local cluster = require "skynet.cluster" 3 | require "skynet.manager" -- inject skynet.forward_type 4 | 5 | local node, address = ... 6 | 7 | skynet.register_protocol { 8 | name = "system", 9 | id = skynet.PTYPE_SYSTEM, 10 | unpack = function (...) return ... end, 11 | } 12 | 13 | local forward_map = { 14 | [skynet.PTYPE_SNAX] = skynet.PTYPE_SYSTEM, 15 | [skynet.PTYPE_LUA] = skynet.PTYPE_SYSTEM, 16 | [skynet.PTYPE_RESPONSE] = skynet.PTYPE_RESPONSE, -- don't free response message 17 | } 18 | 19 | skynet.forward_type( forward_map ,function() 20 | local clusterd = skynet.uniqueservice("clusterd") 21 | local n = tonumber(address) 22 | if n then 23 | address = n 24 | end 25 | skynet.dispatch("system", function (session, source, msg, sz) 26 | if session == 0 then 27 | skynet.send(clusterd, "lua", "push", node, address, msg, sz) 28 | else 29 | skynet.ret(skynet.rawcall(clusterd, "lua", skynet.pack("req", node, address, msg, sz))) 30 | end 31 | end) 32 | end) 33 | -------------------------------------------------------------------------------- /Server/skynet/service/cmemory.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local memory = require "skynet.memory" 3 | 4 | memory.dumpinfo() 5 | --memory.dump() 6 | local info = memory.info() 7 | for k,v in pairs(info) do 8 | print(string.format(":%08x %gK",k,v/1024)) 9 | end 10 | 11 | print("Total memory:", memory.total()) 12 | print("Total block:", memory.block()) 13 | 14 | skynet.start(function() skynet.exit() end) 15 | -------------------------------------------------------------------------------- /Server/skynet/service/console.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local snax = require "skynet.snax" 3 | local socket = require "skynet.socket" 4 | 5 | local function split_cmdline(cmdline) 6 | local split = {} 7 | for i in string.gmatch(cmdline, "%S+") do 8 | table.insert(split,i) 9 | end 10 | return split 11 | end 12 | 13 | local function console_main_loop() 14 | 15 | local stdin = socket.stdin() 16 | print("----------------stdin") 17 | print(stdin) 18 | while true do 19 | local cmdline = socket.readline(stdin, "\n") 20 | local split = split_cmdline(cmdline) 21 | local command = split[1] 22 | --if command == "snax" then 23 | -- pcall(snax.newservice, select(2, table.unpack(split))) 24 | --elseif cmdline ~= "" then 25 | -- pcall(skynet.newservice, cmdline) 26 | --end 27 | end 28 | end 29 | 30 | skynet.start(function() 31 | 32 | skynet.fork(console_main_loop) 33 | end) 34 | -------------------------------------------------------------------------------- /Server/skynet/service/dbg.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local cmd = { ... } 4 | 5 | local function format_table(t) 6 | local index = {} 7 | for k in pairs(t) do 8 | table.insert(index, k) 9 | end 10 | table.sort(index) 11 | local result = {} 12 | for _,v in ipairs(index) do 13 | table.insert(result, string.format("%s:%s",v,tostring(t[v]))) 14 | end 15 | return table.concat(result,"\t") 16 | end 17 | 18 | local function dump_line(key, value) 19 | if type(value) == "table" then 20 | print(key, format_table(value)) 21 | else 22 | print(key,tostring(value)) 23 | end 24 | end 25 | 26 | local function dump_list(list) 27 | local index = {} 28 | for k in pairs(list) do 29 | table.insert(index, k) 30 | end 31 | table.sort(index) 32 | for _,v in ipairs(index) do 33 | dump_line(v, list[v]) 34 | end 35 | end 36 | 37 | skynet.start(function() 38 | local list = skynet.call(".launcher","lua", table.unpack(cmd)) 39 | if list then 40 | dump_list(list) 41 | end 42 | skynet.exit() 43 | end) -------------------------------------------------------------------------------- /Server/skynet/service/debug_agent.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local debugchannel = require "skynet.debugchannel" 3 | 4 | local CMD = {} 5 | 6 | local channel 7 | 8 | function CMD.start(address, fd) 9 | assert(channel == nil, "start more than once") 10 | skynet.error(string.format("Attach to :%08x", address)) 11 | local handle 12 | channel, handle = debugchannel.create() 13 | local ok, err = pcall(skynet.call, address, "debug", "REMOTEDEBUG", fd, handle) 14 | if not ok then 15 | skynet.ret(skynet.pack(false, "Debugger attach failed")) 16 | else 17 | -- todo hook 18 | skynet.ret(skynet.pack(true)) 19 | end 20 | skynet.exit() 21 | end 22 | 23 | function CMD.cmd(cmdline) 24 | channel:write(cmdline) 25 | end 26 | 27 | function CMD.ping() 28 | skynet.ret() 29 | end 30 | 31 | skynet.start(function() 32 | skynet.dispatch("lua", function(_,_,cmd,...) 33 | local f = CMD[cmd] 34 | f(...) 35 | end) 36 | end) 37 | -------------------------------------------------------------------------------- /Server/skynet/service/service_cell.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local service_name = (...) 4 | local init = {} 5 | 6 | function init.init(code, ...) 7 | local start_func 8 | skynet.start = function(f) 9 | start_func = f 10 | end 11 | skynet.dispatch("lua", function() error("No dispatch function") end) 12 | local mainfunc = assert(load(code, service_name)) 13 | assert(skynet.pcall(mainfunc,...)) 14 | if start_func then 15 | start_func() 16 | end 17 | skynet.ret() 18 | end 19 | 20 | skynet.start(function() 21 | skynet.dispatch("lua", function(_,_,cmd,...) 22 | init[cmd](...) 23 | end) 24 | end) 25 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/.autom4te.cfg: -------------------------------------------------------------------------------- 1 | begin-language: "Autoconf-without-aclocal-m4" 2 | args: --no-cache 3 | end-language: "Autoconf-without-aclocal-m4" 4 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | for i in autoconf; do 4 | echo "$i" 5 | $i 6 | if [ $? -ne 0 ]; then 7 | echo "Error $? in $i" 8 | exit 1 9 | fi 10 | done 11 | 12 | echo "./configure --enable-autogen $@" 13 | ./configure --enable-autogen $@ 14 | if [ $? -ne 0 ]; then 15 | echo "Error $? in ./configure" 16 | exit 1 17 | fi 18 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/bin/jemalloc.sh.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix=@prefix@ 4 | exec_prefix=@exec_prefix@ 5 | libdir=@libdir@ 6 | 7 | @LD_PRELOAD_VAR@=${libdir}/libjemalloc.@SOREV@ 8 | export @LD_PRELOAD_VAR@ 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/config.stamp.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/jemalloc/config.stamp.in -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/doc/html.xsl.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/doc/manpages.xsl.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/doc/stylesheet.xsl: -------------------------------------------------------------------------------- 1 | 2 | ansi 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/arena_structs_a.h: -------------------------------------------------------------------------------- 1 | #ifndef JEMALLOC_INTERNAL_ARENA_STRUCTS_A_H 2 | #define JEMALLOC_INTERNAL_ARENA_STRUCTS_A_H 3 | 4 | #include "jemalloc/internal/bitmap.h" 5 | 6 | struct arena_slab_data_s { 7 | /* Per region allocated/deallocated bitmap. */ 8 | bitmap_t bitmap[BITMAP_GROUPS_MAX]; 9 | }; 10 | 11 | #endif /* JEMALLOC_INTERNAL_ARENA_STRUCTS_A_H */ 12 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/base_externs.h: -------------------------------------------------------------------------------- 1 | #ifndef JEMALLOC_INTERNAL_BASE_EXTERNS_H 2 | #define JEMALLOC_INTERNAL_BASE_EXTERNS_H 3 | 4 | base_t *b0get(void); 5 | base_t *base_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks); 6 | void base_delete(tsdn_t *tsdn, base_t *base); 7 | extent_hooks_t *base_extent_hooks_get(base_t *base); 8 | extent_hooks_t *base_extent_hooks_set(base_t *base, 9 | extent_hooks_t *extent_hooks); 10 | void *base_alloc(tsdn_t *tsdn, base_t *base, size_t size, size_t alignment); 11 | extent_t *base_alloc_extent(tsdn_t *tsdn, base_t *base); 12 | void base_stats_get(tsdn_t *tsdn, base_t *base, size_t *allocated, 13 | size_t *resident, size_t *mapped); 14 | void base_prefork(tsdn_t *tsdn, base_t *base); 15 | void base_postfork_parent(tsdn_t *tsdn, base_t *base); 16 | void base_postfork_child(tsdn_t *tsdn, base_t *base); 17 | bool base_boot(tsdn_t *tsdn); 18 | 19 | #endif /* JEMALLOC_INTERNAL_BASE_EXTERNS_H */ 20 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/base_inlines.h: -------------------------------------------------------------------------------- 1 | #ifndef JEMALLOC_INTERNAL_BASE_INLINES_H 2 | #define JEMALLOC_INTERNAL_BASE_INLINES_H 3 | 4 | static inline unsigned 5 | base_ind_get(const base_t *base) { 6 | return base->ind; 7 | } 8 | 9 | #endif /* JEMALLOC_INTERNAL_BASE_INLINES_H */ 10 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/base_types.h: -------------------------------------------------------------------------------- 1 | #ifndef JEMALLOC_INTERNAL_BASE_TYPES_H 2 | #define JEMALLOC_INTERNAL_BASE_TYPES_H 3 | 4 | typedef struct base_block_s base_block_t; 5 | typedef struct base_s base_t; 6 | 7 | #endif /* JEMALLOC_INTERNAL_BASE_TYPES_H */ 8 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/extent_dss.h: -------------------------------------------------------------------------------- 1 | #ifndef JEMALLOC_INTERNAL_EXTENT_DSS_H 2 | #define JEMALLOC_INTERNAL_EXTENT_DSS_H 3 | 4 | typedef enum { 5 | dss_prec_disabled = 0, 6 | dss_prec_primary = 1, 7 | dss_prec_secondary = 2, 8 | 9 | dss_prec_limit = 3 10 | } dss_prec_t; 11 | #define DSS_PREC_DEFAULT dss_prec_secondary 12 | #define DSS_DEFAULT "secondary" 13 | 14 | extern const char *dss_prec_names[]; 15 | 16 | extern const char *opt_dss; 17 | 18 | dss_prec_t extent_dss_prec_get(void); 19 | bool extent_dss_prec_set(dss_prec_t dss_prec); 20 | void *extent_alloc_dss(tsdn_t *tsdn, arena_t *arena, void *new_addr, 21 | size_t size, size_t alignment, bool *zero, bool *commit); 22 | bool extent_in_dss(void *addr); 23 | bool extent_dss_mergeable(void *addr_a, void *addr_b); 24 | void extent_dss_boot(void); 25 | 26 | #endif /* JEMALLOC_INTERNAL_EXTENT_DSS_H */ 27 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/extent_mmap.h: -------------------------------------------------------------------------------- 1 | #ifndef JEMALLOC_INTERNAL_EXTENT_MMAP_EXTERNS_H 2 | #define JEMALLOC_INTERNAL_EXTENT_MMAP_EXTERNS_H 3 | 4 | extern bool opt_retain; 5 | 6 | void *extent_alloc_mmap(void *new_addr, size_t size, size_t alignment, 7 | bool *zero, bool *commit); 8 | bool extent_dalloc_mmap(void *addr, size_t size); 9 | 10 | #endif /* JEMALLOC_INTERNAL_EXTENT_MMAP_EXTERNS_H */ 11 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/extent_types.h: -------------------------------------------------------------------------------- 1 | #ifndef JEMALLOC_INTERNAL_EXTENT_TYPES_H 2 | #define JEMALLOC_INTERNAL_EXTENT_TYPES_H 3 | 4 | typedef struct extent_s extent_t; 5 | typedef struct extents_s extents_t; 6 | 7 | #define EXTENT_HOOKS_INITIALIZER NULL 8 | 9 | #endif /* JEMALLOC_INTERNAL_EXTENT_TYPES_H */ 10 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/hooks.h: -------------------------------------------------------------------------------- 1 | #ifndef JEMALLOC_INTERNAL_HOOKS_H 2 | #define JEMALLOC_INTERNAL_HOOKS_H 3 | 4 | extern JEMALLOC_EXPORT void (*hooks_arena_new_hook)(); 5 | extern JEMALLOC_EXPORT void (*hooks_libc_hook)(); 6 | 7 | #define JEMALLOC_HOOK(fn, hook) ((void)(hook != NULL && (hook(), 0)), fn) 8 | 9 | #define open JEMALLOC_HOOK(open, hooks_libc_hook) 10 | #define read JEMALLOC_HOOK(read, hooks_libc_hook) 11 | #define write JEMALLOC_HOOK(write, hooks_libc_hook) 12 | #define readlink JEMALLOC_HOOK(readlink, hooks_libc_hook) 13 | #define close JEMALLOC_HOOK(close, hooks_libc_hook) 14 | #define creat JEMALLOC_HOOK(creat, hooks_libc_hook) 15 | #define secure_getenv JEMALLOC_HOOK(secure_getenv, hooks_libc_hook) 16 | /* Note that this is undef'd and re-define'd in src/prof.c. */ 17 | #define _Unwind_Backtrace JEMALLOC_HOOK(_Unwind_Backtrace, hooks_libc_hook) 18 | 19 | #endif /* JEMALLOC_INTERNAL_HOOKS_H */ 20 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/private_namespace.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | for symbol in `cat "$@"` ; do 4 | echo "#define ${symbol} JEMALLOC_N(${symbol})" 5 | done 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/public_namespace.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | for nm in `cat $1` ; do 4 | n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'` 5 | echo "#define je_${n} JEMALLOC_N(${n})" 6 | done 7 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/public_unnamespace.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | for nm in `cat $1` ; do 4 | n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'` 5 | echo "#undef je_${n}" 6 | done 7 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/spin.h: -------------------------------------------------------------------------------- 1 | #ifndef JEMALLOC_INTERNAL_SPIN_H 2 | #define JEMALLOC_INTERNAL_SPIN_H 3 | 4 | #ifdef JEMALLOC_SPIN_C_ 5 | # define SPIN_INLINE extern inline 6 | #else 7 | # define SPIN_INLINE inline 8 | #endif 9 | 10 | #define SPIN_INITIALIZER {0U} 11 | 12 | typedef struct { 13 | unsigned iteration; 14 | } spin_t; 15 | 16 | SPIN_INLINE void 17 | spin_adaptive(spin_t *spin) { 18 | volatile uint32_t i; 19 | 20 | if (spin->iteration < 5) { 21 | for (i = 0; i < (1U << spin->iteration); i++) { 22 | CPU_SPINWAIT; 23 | } 24 | spin->iteration++; 25 | } else { 26 | #ifdef _WIN32 27 | SwitchToThread(); 28 | #else 29 | sched_yield(); 30 | #endif 31 | } 32 | } 33 | 34 | #undef SPIN_INLINE 35 | 36 | #endif /* JEMALLOC_INTERNAL_SPIN_H */ 37 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/stats_tsd.h: -------------------------------------------------------------------------------- 1 | #ifndef JEMALLOC_INTERNAL_STATS_TSD_H 2 | #define JEMALLOC_INTERNAL_STATS_TSD_H 3 | 4 | typedef struct tcache_bin_stats_s { 5 | /* 6 | * Number of allocation requests that corresponded to the size of this 7 | * bin. 8 | */ 9 | uint64_t nrequests; 10 | } tcache_bin_stats_t; 11 | 12 | #endif /* JEMALLOC_INTERNAL_STATS_TSD_H */ 13 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/internal/tsd_types.h: -------------------------------------------------------------------------------- 1 | #ifndef JEMALLOC_INTERNAL_TSD_TYPES_H 2 | #define JEMALLOC_INTERNAL_TSD_TYPES_H 3 | 4 | #define MALLOC_TSD_CLEANUPS_MAX 2 5 | 6 | typedef struct tsd_s tsd_t; 7 | typedef struct tsdn_s tsdn_t; 8 | typedef bool (*malloc_tsd_cleanup_t)(void); 9 | 10 | #endif /* JEMALLOC_INTERNAL_TSD_TYPES_H */ 11 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/jemalloc/jemalloc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | objroot=$1 4 | 5 | cat < 5 | 6 | /* MSVC doesn't define _Bool or bool in C, but does have BOOL */ 7 | /* Note this doesn't pass autoconf's test because (bool) 0.5 != true */ 8 | /* Clang-cl uses MSVC headers, so needs msvc_compat, but has _Bool as 9 | * a built-in type. */ 10 | #ifndef __clang__ 11 | typedef BOOL _Bool; 12 | #endif 13 | 14 | #define bool _Bool 15 | #define true 1 16 | #define false 0 17 | 18 | #define __bool_true_false_are_defined 1 19 | 20 | #endif /* stdbool_h */ 21 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/include/msvc_compat/windows_extra.h: -------------------------------------------------------------------------------- 1 | #ifndef MSVC_COMPAT_WINDOWS_EXTRA_H 2 | #define MSVC_COMPAT_WINDOWS_EXTRA_H 3 | 4 | #include 5 | 6 | #endif /* MSVC_COMPAT_WINDOWS_EXTRA_H */ 7 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/jemalloc.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | install_suffix=@install_suffix@ 6 | 7 | Name: jemalloc 8 | Description: A general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support. 9 | URL: http://jemalloc.net/ 10 | Version: @jemalloc_version@ 11 | Cflags: -I${includedir} 12 | Libs: -L${libdir} -ljemalloc${install_suffix} 13 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/msvc/ReadMe.txt: -------------------------------------------------------------------------------- 1 | 2 | How to build jemalloc for Windows 3 | ================================= 4 | 5 | 1. Install Cygwin with at least the following packages: 6 | * autoconf 7 | * autogen 8 | * gawk 9 | * grep 10 | * sed 11 | 12 | 2. Install Visual Studio 2015 with Visual C++ 13 | 14 | 3. Add Cygwin\bin to the PATH environment variable 15 | 16 | 4. Open "VS2015 x86 Native Tools Command Prompt" 17 | (note: x86/x64 doesn't matter at this point) 18 | 19 | 5. Generate header files: 20 | sh -c "CC=cl ./autogen.sh" 21 | 22 | 6. Now the project can be opened and built in Visual Studio: 23 | msvc\jemalloc_vc2015.sln 24 | 25 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/msvc/projects/vc2015/test_threads/test_threads.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | int test_threads(); 4 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/msvc/projects/vc2015/test_threads/test_threads.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | 14 | 15 | Source Files 16 | 17 | 18 | Source Files 19 | 20 | 21 | 22 | 23 | Header Files 24 | 25 | 26 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/msvc/projects/vc2015/test_threads/test_threads_main.cpp: -------------------------------------------------------------------------------- 1 | #include "test_threads.h" 2 | #include 3 | #include 4 | #include 5 | 6 | using namespace std::chrono_literals; 7 | 8 | int main(int argc, char** argv) { 9 | int rc = test_threads(); 10 | return rc; 11 | } 12 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/run_tests.sh: -------------------------------------------------------------------------------- 1 | $(dirname "$)")/scripts/gen_run_tests.py | bash 2 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/src/hash.c: -------------------------------------------------------------------------------- 1 | #define JEMALLOC_HASH_C_ 2 | #include "jemalloc/internal/jemalloc_preamble.h" 3 | #include "jemalloc/internal/jemalloc_internal_includes.h" 4 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/src/hooks.c: -------------------------------------------------------------------------------- 1 | #include "jemalloc/internal/jemalloc_preamble.h" 2 | 3 | /* 4 | * The hooks are a little bit screwy -- they're not genuinely exported in the 5 | * sense that we want them available to end-users, but we do want them visible 6 | * from outside the generated library, so that we can use them in test code. 7 | */ 8 | JEMALLOC_EXPORT 9 | void (*hooks_arena_new_hook)() = NULL; 10 | 11 | JEMALLOC_EXPORT 12 | void (*hooks_libc_hook)() = NULL; 13 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/src/mutex_pool.c: -------------------------------------------------------------------------------- 1 | #define JEMALLOC_MUTEX_POOL_C_ 2 | 3 | #include "jemalloc/internal/jemalloc_preamble.h" 4 | #include "jemalloc/internal/jemalloc_internal_includes.h" 5 | 6 | #include "jemalloc/internal/mutex.h" 7 | #include "jemalloc/internal/mutex_pool.h" 8 | 9 | bool 10 | mutex_pool_init(mutex_pool_t *pool, const char *name, witness_rank_t rank) { 11 | for (int i = 0; i < MUTEX_POOL_SIZE; ++i) { 12 | if (malloc_mutex_init(&pool->mutexes[i], name, rank, 13 | malloc_mutex_address_ordered)) { 14 | return true; 15 | } 16 | } 17 | return false; 18 | } 19 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/src/prng.c: -------------------------------------------------------------------------------- 1 | #define JEMALLOC_PRNG_C_ 2 | #include "jemalloc/internal/jemalloc_preamble.h" 3 | #include "jemalloc/internal/jemalloc_internal_includes.h" 4 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/src/spin.c: -------------------------------------------------------------------------------- 1 | #define JEMALLOC_SPIN_C_ 2 | #include "jemalloc/internal/jemalloc_preamble.h" 3 | 4 | #include "jemalloc/internal/spin.h" 5 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/src/ticker.c: -------------------------------------------------------------------------------- 1 | #define JEMALLOC_TICKER_C_ 2 | #include "jemalloc/internal/jemalloc_preamble.h" 3 | #include "jemalloc/internal/jemalloc_internal_includes.h" 4 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/include/test/btalloc.h: -------------------------------------------------------------------------------- 1 | /* btalloc() provides a mechanism for allocating via permuted backtraces. */ 2 | void *btalloc(size_t size, unsigned bits); 3 | 4 | #define btalloc_n_proto(n) \ 5 | void *btalloc_##n(size_t size, unsigned bits); 6 | btalloc_n_proto(0) 7 | btalloc_n_proto(1) 8 | 9 | #define btalloc_n_gen(n) \ 10 | void * \ 11 | btalloc_##n(size_t size, unsigned bits) { \ 12 | void *p; \ 13 | \ 14 | if (bits == 0) { \ 15 | p = mallocx(size, 0); \ 16 | } else { \ 17 | switch (bits & 0x1U) { \ 18 | case 0: \ 19 | p = (btalloc_0(size, bits >> 1)); \ 20 | break; \ 21 | case 1: \ 22 | p = (btalloc_1(size, bits >> 1)); \ 23 | break; \ 24 | default: not_reached(); \ 25 | } \ 26 | } \ 27 | /* Intentionally sabotage tail call optimization. */ \ 28 | assert_ptr_not_null(p, "Unexpected mallocx() failure"); \ 29 | return p; \ 30 | } 31 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/include/test/jemalloc_test_defs.h.in: -------------------------------------------------------------------------------- 1 | #include "jemalloc/internal/jemalloc_internal_defs.h" 2 | #include "jemalloc/internal/jemalloc_internal_decls.h" 3 | 4 | /* 5 | * For use by SFMT. configure.ac doesn't actually define HAVE_SSE2 because its 6 | * dependencies are notoriously unportable in practice. 7 | */ 8 | #undef HAVE_SSE2 9 | #undef HAVE_ALTIVEC 10 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/include/test/mtx.h: -------------------------------------------------------------------------------- 1 | /* 2 | * mtx is a slightly simplified version of malloc_mutex. This code duplication 3 | * is unfortunate, but there are allocator bootstrapping considerations that 4 | * would leak into the test infrastructure if malloc_mutex were used directly 5 | * in tests. 6 | */ 7 | 8 | typedef struct { 9 | #ifdef _WIN32 10 | CRITICAL_SECTION lock; 11 | #elif (defined(JEMALLOC_OS_UNFAIR_LOCK)) 12 | os_unfair_lock lock; 13 | #elif (defined(JEMALLOC_OSSPIN)) 14 | OSSpinLock lock; 15 | #else 16 | pthread_mutex_t lock; 17 | #endif 18 | } mtx_t; 19 | 20 | bool mtx_init(mtx_t *mtx); 21 | void mtx_fini(mtx_t *mtx); 22 | void mtx_lock(mtx_t *mtx); 23 | void mtx_unlock(mtx_t *mtx); 24 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/include/test/thd.h: -------------------------------------------------------------------------------- 1 | /* Abstraction layer for threading in tests. */ 2 | #ifdef _WIN32 3 | typedef HANDLE thd_t; 4 | #else 5 | typedef pthread_t thd_t; 6 | #endif 7 | 8 | void thd_create(thd_t *thd, void *(*proc)(void *), void *arg); 9 | void thd_join(thd_t thd, void **ret); 10 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/include/test/timer.h: -------------------------------------------------------------------------------- 1 | /* Simple timer, for use in benchmark reporting. */ 2 | 3 | typedef struct { 4 | nstime_t t0; 5 | nstime_t t1; 6 | } timedelta_t; 7 | 8 | void timer_start(timedelta_t *timer); 9 | void timer_stop(timedelta_t *timer); 10 | uint64_t timer_usec(const timedelta_t *timer); 11 | void timer_ratio(timedelta_t *a, timedelta_t *b, char *buf, size_t buflen); 12 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/integration/extent.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_fill}" = "x1" ] ; then 4 | export MALLOC_CONF="junk:false" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/integration/mallocx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_fill}" = "x1" ] ; then 4 | export MALLOC_CONF="junk:false" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/integration/xallocx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_fill}" = "x1" ] ; then 4 | export MALLOC_CONF="junk:false" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/src/btalloc.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | 3 | void * 4 | btalloc(size_t size, unsigned bits) { 5 | return btalloc_0(size, bits); 6 | } 7 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/src/btalloc_0.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | 3 | btalloc_n_gen(0) 4 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/src/btalloc_1.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | 3 | btalloc_n_gen(1) 4 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/src/math.c: -------------------------------------------------------------------------------- 1 | #define MATH_C_ 2 | #include "test/jemalloc_test.h" 3 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/src/mq.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | 3 | /* 4 | * Sleep for approximately ns nanoseconds. No lower *nor* upper bound on sleep 5 | * time is guaranteed. 6 | */ 7 | void 8 | mq_nanosleep(unsigned ns) { 9 | assert(ns <= 1000*1000*1000); 10 | 11 | #ifdef _WIN32 12 | Sleep(ns / 1000); 13 | #else 14 | { 15 | struct timespec timeout; 16 | 17 | if (ns < 1000*1000*1000) { 18 | timeout.tv_sec = 0; 19 | timeout.tv_nsec = ns; 20 | } else { 21 | timeout.tv_sec = 1; 22 | timeout.tv_nsec = 0; 23 | } 24 | nanosleep(&timeout, NULL); 25 | } 26 | #endif 27 | } 28 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/src/thd.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | 3 | #ifdef _WIN32 4 | void 5 | thd_create(thd_t *thd, void *(*proc)(void *), void *arg) { 6 | LPTHREAD_START_ROUTINE routine = (LPTHREAD_START_ROUTINE)proc; 7 | *thd = CreateThread(NULL, 0, routine, arg, 0, NULL); 8 | if (*thd == NULL) { 9 | test_fail("Error in CreateThread()\n"); 10 | } 11 | } 12 | 13 | void 14 | thd_join(thd_t thd, void **ret) { 15 | if (WaitForSingleObject(thd, INFINITE) == WAIT_OBJECT_0 && ret) { 16 | DWORD exit_code; 17 | GetExitCodeThread(thd, (LPDWORD) &exit_code); 18 | *ret = (void *)(uintptr_t)exit_code; 19 | } 20 | } 21 | 22 | #else 23 | void 24 | thd_create(thd_t *thd, void *(*proc)(void *), void *arg) { 25 | if (pthread_create(thd, NULL, proc, arg) != 0) { 26 | test_fail("Error in pthread_create()\n"); 27 | } 28 | } 29 | 30 | void 31 | thd_join(thd_t thd, void **ret) { 32 | pthread_join(thd, ret); 33 | } 34 | #endif 35 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/a0.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | 3 | TEST_BEGIN(test_a0) { 4 | void *p; 5 | 6 | p = a0malloc(1); 7 | assert_ptr_not_null(p, "Unexpected a0malloc() error"); 8 | a0dalloc(p); 9 | } 10 | TEST_END 11 | 12 | int 13 | main(void) { 14 | return test_no_malloc_init( 15 | test_a0); 16 | } 17 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/arena_reset_prof.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | #define ARENA_RESET_PROF_C_ 3 | 4 | #include "arena_reset.c" 5 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/arena_reset_prof.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | export MALLOC_CONF="prof:true,lg_prof_sample:0" 4 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/decay.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | export MALLOC_CONF="dirty_decay_ms:1000,muzzy_decay_ms:1000,lg_tcache_max:0" 4 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/hooks.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | 3 | static bool hook_called = false; 4 | 5 | static void 6 | hook() { 7 | hook_called = true; 8 | } 9 | 10 | static int 11 | func_to_hook(int arg1, int arg2) { 12 | return arg1 + arg2; 13 | } 14 | 15 | #define func_to_hook JEMALLOC_HOOK(func_to_hook, hooks_libc_hook) 16 | 17 | TEST_BEGIN(unhooked_call) { 18 | hooks_libc_hook = NULL; 19 | hook_called = false; 20 | assert_d_eq(3, func_to_hook(1, 2), "Hooking changed return value."); 21 | assert_false(hook_called, "Nulling out hook didn't take."); 22 | } 23 | TEST_END 24 | 25 | TEST_BEGIN(hooked_call) { 26 | hooks_libc_hook = &hook; 27 | hook_called = false; 28 | assert_d_eq(3, func_to_hook(1, 2), "Hooking changed return value."); 29 | assert_true(hook_called, "Hook should have executed."); 30 | } 31 | TEST_END 32 | 33 | int 34 | main(void) { 35 | return test( 36 | unhooked_call, 37 | hooked_call); 38 | } 39 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/junk.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_fill}" = "x1" ] ; then 4 | export MALLOC_CONF="abort:false,zero:false,junk:true" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/junk_alloc.c: -------------------------------------------------------------------------------- 1 | #include "junk.c" 2 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/junk_alloc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_fill}" = "x1" ] ; then 4 | export MALLOC_CONF="abort:false,zero:false,junk:alloc" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/junk_free.c: -------------------------------------------------------------------------------- 1 | #include "junk.c" 2 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/junk_free.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_fill}" = "x1" ] ; then 4 | export MALLOC_CONF="abort:false,zero:false,junk:free" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/pack.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Immediately purge to minimize fragmentation. 4 | export MALLOC_CONF="dirty_decay_ms:0,muzzy_decay_ms:0" 5 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/pages.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | 3 | TEST_BEGIN(test_pages_huge) { 4 | size_t alloc_size; 5 | bool commit; 6 | void *pages, *hugepage; 7 | 8 | alloc_size = HUGEPAGE * 2 - PAGE; 9 | commit = true; 10 | pages = pages_map(NULL, alloc_size, PAGE, &commit); 11 | assert_ptr_not_null(pages, "Unexpected pages_map() error"); 12 | 13 | hugepage = (void *)(ALIGNMENT_CEILING((uintptr_t)pages, HUGEPAGE)); 14 | assert_b_ne(pages_huge(hugepage, HUGEPAGE), config_thp, 15 | "Unexpected pages_huge() result"); 16 | assert_false(pages_nohuge(hugepage, HUGEPAGE), 17 | "Unexpected pages_nohuge() result"); 18 | 19 | pages_unmap(pages, alloc_size); 20 | } 21 | TEST_END 22 | 23 | int 24 | main(void) { 25 | return test( 26 | test_pages_huge); 27 | } 28 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/prof_accum.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_prof}" = "x1" ] ; then 4 | export MALLOC_CONF="prof:true,prof_accum:true,prof_active:false,lg_prof_sample:0" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/prof_active.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_prof}" = "x1" ] ; then 4 | export MALLOC_CONF="prof:true,prof_thread_active_init:false,lg_prof_sample:0" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/prof_gdump.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_prof}" = "x1" ] ; then 4 | export MALLOC_CONF="prof:true,prof_active:false,prof_gdump:true" 5 | fi 6 | 7 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/prof_idump.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | 3 | static bool did_prof_dump_open; 4 | 5 | static int 6 | prof_dump_open_intercept(bool propagate_err, const char *filename) { 7 | int fd; 8 | 9 | did_prof_dump_open = true; 10 | 11 | fd = open("/dev/null", O_WRONLY); 12 | assert_d_ne(fd, -1, "Unexpected open() failure"); 13 | 14 | return fd; 15 | } 16 | 17 | TEST_BEGIN(test_idump) { 18 | bool active; 19 | void *p; 20 | 21 | test_skip_if(!config_prof); 22 | 23 | active = true; 24 | assert_d_eq(mallctl("prof.active", NULL, NULL, (void *)&active, 25 | sizeof(active)), 0, 26 | "Unexpected mallctl failure while activating profiling"); 27 | 28 | prof_dump_open = prof_dump_open_intercept; 29 | 30 | did_prof_dump_open = false; 31 | p = mallocx(1, 0); 32 | assert_ptr_not_null(p, "Unexpected mallocx() failure"); 33 | dallocx(p, 0); 34 | assert_true(did_prof_dump_open, "Expected a profile dump"); 35 | } 36 | TEST_END 37 | 38 | int 39 | main(void) { 40 | return test( 41 | test_idump); 42 | } 43 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/prof_idump.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | export MALLOC_CONF="tcache:false" 4 | if [ "x${enable_prof}" = "x1" ] ; then 5 | export MALLOC_CONF="${MALLOC_CONF},prof:true,prof_accum:true,prof_active:false,lg_prof_sample:0,lg_prof_interval:0" 6 | fi 7 | 8 | 9 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/prof_reset.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_prof}" = "x1" ] ; then 4 | export MALLOC_CONF="prof:true,prof_active:false,lg_prof_sample:0" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/prof_tctx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_prof}" = "x1" ] ; then 4 | export MALLOC_CONF="prof:true,lg_prof_sample:0" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/prof_thread_name.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_prof}" = "x1" ] ; then 4 | export MALLOC_CONF="prof:true,prof_active:false" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/slab.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | 3 | TEST_BEGIN(test_arena_slab_regind) { 4 | szind_t binind; 5 | 6 | for (binind = 0; binind < NBINS; binind++) { 7 | size_t regind; 8 | extent_t slab; 9 | const arena_bin_info_t *bin_info = &arena_bin_info[binind]; 10 | extent_init(&slab, NULL, mallocx(bin_info->slab_size, 11 | MALLOCX_LG_ALIGN(LG_PAGE)), bin_info->slab_size, true, 12 | binind, 0, extent_state_active, false, true); 13 | assert_ptr_not_null(extent_addr_get(&slab), 14 | "Unexpected malloc() failure"); 15 | for (regind = 0; regind < bin_info->nregs; regind++) { 16 | void *reg = (void *)((uintptr_t)extent_addr_get(&slab) + 17 | (bin_info->reg_size * regind)); 18 | assert_zu_eq(arena_slab_regind(&slab, binind, reg), 19 | regind, 20 | "Incorrect region index computed for size %zu", 21 | bin_info->reg_size); 22 | } 23 | free(extent_addr_get(&slab)); 24 | } 25 | } 26 | TEST_END 27 | 28 | int 29 | main(void) { 30 | return test( 31 | test_arena_slab_regind); 32 | } 33 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/spin.c: -------------------------------------------------------------------------------- 1 | #include "test/jemalloc_test.h" 2 | 3 | #include "jemalloc/internal/spin.h" 4 | 5 | TEST_BEGIN(test_spin) { 6 | spin_t spinner = SPIN_INITIALIZER; 7 | 8 | for (unsigned i = 0; i < 100; i++) { 9 | spin_adaptive(&spinner); 10 | } 11 | } 12 | TEST_END 13 | 14 | int 15 | main(void) { 16 | return test( 17 | test_spin); 18 | } 19 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/jemalloc/test/unit/zero.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "x${enable_fill}" = "x1" ] ; then 4 | export MALLOC_CONF="abort:false,junk:false,zero:true" 5 | fi 6 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lpeg/lpcode.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lpcode.h,v 1.8 2016/09/15 17:46:13 roberto Exp $ 3 | */ 4 | 5 | #if !defined(lpcode_h) 6 | #define lpcode_h 7 | 8 | #include "lua.h" 9 | 10 | #include "lptypes.h" 11 | #include "lptree.h" 12 | #include "lpvm.h" 13 | 14 | int tocharset (TTree *tree, Charset *cs); 15 | int checkaux (TTree *tree, int pred); 16 | int fixedlen (TTree *tree); 17 | int hascaptures (TTree *tree); 18 | int lp_gc (lua_State *L); 19 | Instruction *compile (lua_State *L, Pattern *p); 20 | void realloccode (lua_State *L, Pattern *p, int nsize); 21 | int sizei (const Instruction *i); 22 | 23 | 24 | #define PEnullable 0 25 | #define PEnofail 1 26 | 27 | /* 28 | ** nofail(t) implies that 't' cannot fail with any input 29 | */ 30 | #define nofail(t) checkaux(t, PEnofail) 31 | 32 | /* 33 | ** (not nullable(t)) implies 't' cannot match without consuming 34 | ** something 35 | */ 36 | #define nullable(t) checkaux(t, PEnullable) 37 | 38 | 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lpeg/lpeg-128.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lpeg/lpeg-128.gif -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lpeg/lpprint.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lpprint.h,v 1.2 2015/06/12 18:18:08 roberto Exp $ 3 | */ 4 | 5 | 6 | #if !defined(lpprint_h) 7 | #define lpprint_h 8 | 9 | 10 | #include "lptree.h" 11 | #include "lpvm.h" 12 | 13 | 14 | #if defined(LPEG_DEBUG) 15 | 16 | void printpatt (Instruction *p, int n); 17 | void printtree (TTree *tree, int ident); 18 | void printktable (lua_State *L, int idx); 19 | void printcharset (const byte *st); 20 | void printcaplist (Capture *cap, Capture *limit); 21 | void printinst (const Instruction *op, const Instruction *p); 22 | 23 | #else 24 | 25 | #define printktable(L,idx) \ 26 | luaL_error(L, "function only implemented in debug mode") 27 | #define printtree(tree,i) \ 28 | luaL_error(L, "function only implemented in debug mode") 29 | #define printpatt(p,n) \ 30 | luaL_error(L, "function only implemented in debug mode") 31 | 32 | #endif 33 | 34 | 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/README: -------------------------------------------------------------------------------- 1 | 2 | This is Lua 5.3.5, released on 26 Jun 2018. 3 | 4 | For installation instructions, license details, and 5 | further information about Lua, see doc/readme.html. 6 | 7 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/doc/index.css: -------------------------------------------------------------------------------- 1 | ul { 2 | list-style-type: none ; 3 | } 4 | 5 | ul.contents { 6 | padding: 0 ; 7 | } 8 | 9 | table { 10 | border: none ; 11 | border-spacing: 0 ; 12 | border-collapse: collapse ; 13 | } 14 | 15 | td { 16 | vertical-align: top ; 17 | padding: 0 ; 18 | text-align: left ; 19 | line-height: 1.25 ; 20 | width: 15% ; 21 | } 22 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/doc/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/doc/logo.gif -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/doc/manual.css: -------------------------------------------------------------------------------- 1 | h3 code { 2 | font-family: inherit ; 3 | font-size: inherit ; 4 | } 5 | 6 | pre, code { 7 | font-size: 12pt ; 8 | } 9 | 10 | span.apii { 11 | color: gray ; 12 | float: right ; 13 | font-family: inherit ; 14 | font-style: normal ; 15 | font-size: small ; 16 | } 17 | 18 | h2:before { 19 | content: "" ; 20 | padding-right: 0em ; 21 | } 22 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/doc/osi-certified-72x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/doc/osi-certified-72x60.png -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.9.1.1 2017/04/19 17:20:42 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "llimits.h" 12 | #include "lstate.h" 13 | 14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ 15 | "stack overflow");} 16 | 17 | #define adjustresults(L,nres) \ 18 | { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } 19 | 20 | #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ 21 | "not enough elements in the stack") 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lapi.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lapi.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lauxlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lauxlib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lbaselib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lbaselib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lbitlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lbitlib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lcode.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lcode.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lcorolib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lcorolib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lctype.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lctype.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/ldblib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/ldblib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/ldebug.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/ldebug.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/ldo.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/ldo.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/ldump.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/ldump.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lfunc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lfunc.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lgc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lgc.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/liblua.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/liblua.a -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/linit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/linit.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/liolib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/liolib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/llex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/llex.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lmathlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lmathlib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lmem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lmem.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/loadlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/loadlib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lobject.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lobject.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lopcodes.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lopcodes.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/loslib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/loslib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lparser.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lparser.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lstate.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lstate.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lstring.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lstring.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lstrlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lstrlib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/ltable.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/ltable.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/ltablib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/ltablib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/ltm.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/ltm.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lua.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lua.exe -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lua.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lua.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lua53.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lua53.dll -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/luac.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/luac.exe -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/luac.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/luac.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.45.1.1 2017/04/19 17:20:42 roberto Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "llimits.h" 11 | #include "lobject.h" 12 | #include "lzio.h" 13 | 14 | 15 | /* data to catch conversion errors */ 16 | #define LUAC_DATA "\x19\x93\r\n\x1a\n" 17 | 18 | #define LUAC_INT 0x5678 19 | #define LUAC_NUM cast_num(370.5) 20 | 21 | #define MYINT(s) (s[0]-'0') 22 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) 23 | #define LUAC_FORMAT 0 /* this is the official format */ 24 | 25 | /* load one chunk; from lundump.c */ 26 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name); 27 | 28 | /* dump one chunk; from ldump.c */ 29 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, 30 | void* data, int strip); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lundump.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lundump.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lutf8lib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lutf8lib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lvm.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lvm.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-5.3.5/src/lzio.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua-5.3.5/src/lzio.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-md5/README: -------------------------------------------------------------------------------- 1 | MD5 - Cryptographic Library for Lua 2 | Copyright 2003 PUC-Rio 3 | http://www.keplerproject.org/md5 4 | 5 | MD5 offers basic cryptographic facilities for Lua 5.1: a hash (digest) 6 | function, a pair crypt/decrypt based on MD5 and CFB, and a pair crypt/decrypt based 7 | on DES with 56-bit keys. 8 | 9 | MD5 current version is 1.1.2. 10 | 11 | This version is copy from https://github.com/keplerproject/md5 12 | 13 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-md5/compat-5.2.c: -------------------------------------------------------------------------------- 1 | #include "lua.h" 2 | #include "lauxlib.h" 3 | #include "compat-5.2.h" 4 | 5 | #if !defined LUA_VERSION_NUM || LUA_VERSION_NUM==501 6 | /* 7 | ** Adapted from Lua 5.2.0 8 | */ 9 | void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { 10 | luaL_checkstack(L, nup+1, "too many upvalues"); 11 | for (; l->name != NULL; l++) { /* fill the table with given functions */ 12 | int i; 13 | lua_pushstring(L, l->name); 14 | for (i = 0; i < nup; i++) /* copy upvalues to the top */ 15 | lua_pushvalue(L, -(nup + 1)); 16 | lua_pushcclosure(L, l->func, nup); /* closure with those upvalues */ 17 | lua_settable(L, -(nup + 3)); /* table must be below the upvalues, the name and the closure */ 18 | } 19 | lua_pop(L, nup); /* remove upvalues */ 20 | } 21 | #endif 22 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-md5/compat-5.2.h: -------------------------------------------------------------------------------- 1 | #if !defined LUA_VERSION_NUM 2 | /* Lua 5.0 */ 3 | #define luaL_Reg luaL_reg 4 | 5 | #define luaL_addchar(B,c) \ 6 | ((void)((B)->p < ((B)->buffer+LUAL_BUFFERSIZE) || luaL_prepbuffer(B)), \ 7 | (*(B)->p++ = (char)(c))) 8 | #endif 9 | 10 | #if LUA_VERSION_NUM==501 11 | /* Lua 5.1 */ 12 | #define lua_rawlen lua_objlen 13 | #endif 14 | 15 | void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); 16 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua-md5/md5.h: -------------------------------------------------------------------------------- 1 | /** 2 | * $Id: md5.h,v 1.2 2006/03/03 15:04:49 tomas Exp $ 3 | * Cryptographic module for Lua. 4 | * @author Roberto Ierusalimschy 5 | */ 6 | 7 | 8 | #ifndef md5_h 9 | #define md5_h 10 | 11 | #include 12 | 13 | 14 | #define HASHSIZE 16 15 | 16 | void md5 (const char *message, long len, char *output); 17 | int luaopen_md5_core (lua_State *L); 18 | 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/README: -------------------------------------------------------------------------------- 1 | This is a modify version of lua 5.3.2 (http://www.lua.org/ftp/lua-5.3.2.tar.gz) . 2 | 3 | For detail , 4 | Shared Proto : http://lua-users.org/lists/lua-l/2014-03/msg00489.html 5 | Shared short string table : http://blog.codingnow.com/2015/08/lua_vm_share_string.html 6 | Signal for debug use : http://blog.codingnow.com/2015/03/skynet_signal.html 7 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/bit.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/bit.so -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.9.1.1 2017/04/19 17:20:42 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "llimits.h" 12 | #include "lstate.h" 13 | 14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ 15 | "stack overflow");} 16 | 17 | #define adjustresults(L,nres) \ 18 | { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } 19 | 20 | #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ 21 | "not enough elements in the stack") 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lapi.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lapi.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lauxlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lauxlib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lbaselib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lbaselib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lbitlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lbitlib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lcode.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lcode.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lcorolib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lcorolib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lctype.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lctype.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/ldblib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/ldblib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/ldebug.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/ldebug.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/ldo.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/ldo.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/ldump.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/ldump.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lfunc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lfunc.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lgc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lgc.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/liblua.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/liblua.a -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/linit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/linit.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/liolib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/liolib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/llex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/llex.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lmathlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lmathlib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lmem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lmem.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/loadlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/loadlib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lobject.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lobject.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lopcodes.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lopcodes.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/loslib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/loslib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lparser.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lparser.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lprefix.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lprefix.h,v 1.2.1.1 2017/04/19 17:20:42 roberto Exp $ 3 | ** Definitions for Lua code that must come before any other header file 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lprefix_h 8 | #define lprefix_h 9 | 10 | 11 | /* 12 | ** Allows POSIX/XSI stuff 13 | */ 14 | #if !defined(LUA_USE_C89) /* { */ 15 | 16 | #if !defined(_XOPEN_SOURCE) 17 | #define _XOPEN_SOURCE 600 18 | #elif _XOPEN_SOURCE == 0 19 | #undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */ 20 | #endif 21 | 22 | /* 23 | ** Allows manipulation of large files in gcc and some other compilers 24 | */ 25 | #if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS) 26 | #define _LARGEFILE_SOURCE 1 27 | #define _FILE_OFFSET_BITS 64 28 | #endif 29 | 30 | #endif /* } */ 31 | 32 | 33 | /* 34 | ** Windows stuff 35 | */ 36 | #if defined(_WIN32) /* { */ 37 | 38 | #if !defined(_CRT_SECURE_NO_WARNINGS) 39 | #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */ 40 | #endif 41 | 42 | #endif /* } */ 43 | 44 | #endif 45 | 46 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lstate.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lstate.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lstring.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lstring.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lstrlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lstrlib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/ltable.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/ltable.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/ltablib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/ltablib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/ltm.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/ltm.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lua -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lua.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lua.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/luac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/luac -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/luac.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/luac.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.45.1.1 2017/04/19 17:20:42 roberto Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "llimits.h" 11 | #include "lobject.h" 12 | #include "lzio.h" 13 | 14 | 15 | /* data to catch conversion errors */ 16 | #define LUAC_DATA "\x19\x93\r\n\x1a\n" 17 | 18 | #define LUAC_INT 0x5678 19 | #define LUAC_NUM cast_num(370.5) 20 | 21 | #define MYINT(s) (s[0]-'0') 22 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) 23 | #define LUAC_FORMAT 0 /* this is the official format */ 24 | 25 | /* load one chunk; from lundump.c */ 26 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name); 27 | 28 | /* dump one chunk; from ldump.c */ 29 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, 30 | void* data, int strip); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lundump.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lundump.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lutf8lib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lutf8lib.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lvm.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lvm.o -------------------------------------------------------------------------------- /Server/skynet/src/3rd/lua/lzio.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/3rd/lua/lzio.o -------------------------------------------------------------------------------- /Server/skynet/src/cservice/gate.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/cservice/gate.so -------------------------------------------------------------------------------- /Server/skynet/src/cservice/harbor.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/cservice/harbor.so -------------------------------------------------------------------------------- /Server/skynet/src/cservice/logger.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/cservice/logger.so -------------------------------------------------------------------------------- /Server/skynet/src/cservice/snlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/cservice/snlua.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/bgcrypto.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/bgcrypto.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/bson.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/bson.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/cjson.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/cjson.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/client.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/client.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/clientintsocket.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/clientintsocket.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/clientwebsocket.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/clientwebsocket.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/intnetpack.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/intnetpack.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/lpeg.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/lpeg.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/ltask.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/ltask.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/md5.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/md5.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/pb.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/pb.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/skynet.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/skynet.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/sproto.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/sproto.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/webclient.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/webclient.so -------------------------------------------------------------------------------- /Server/skynet/src/luaclib/websocketnetpack.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/luaclib/websocketnetpack.so -------------------------------------------------------------------------------- /Server/skynet/src/lualib-src/lua-seri.h: -------------------------------------------------------------------------------- 1 | #ifndef LUA_SERIALIZE_H 2 | #define LUA_SERIALIZE_H 3 | 4 | #include 5 | 6 | int luaseri_pack(lua_State *L); 7 | int luaseri_unpack(lua_State *L); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /Server/skynet/src/lualib-src/sproto/README: -------------------------------------------------------------------------------- 1 | Check https://github.com/cloudwu/sproto for more 2 | -------------------------------------------------------------------------------- /Server/skynet/src/lualib-src/sproto/msvcint.h: -------------------------------------------------------------------------------- 1 | #ifndef msvc_int_h 2 | #define msvc_int_h 3 | 4 | #ifdef _MSC_VER 5 | # define inline __inline 6 | # ifndef _MSC_STDINT_H_ 7 | # if (_MSC_VER < 1300) 8 | typedef signed char int8_t; 9 | typedef signed short int16_t; 10 | typedef signed int int32_t; 11 | typedef unsigned char uint8_t; 12 | typedef unsigned short uint16_t; 13 | typedef unsigned int uint32_t; 14 | # else 15 | typedef signed __int8 int8_t; 16 | typedef signed __int16 int16_t; 17 | typedef signed __int32 int32_t; 18 | typedef unsigned __int8 uint8_t; 19 | typedef unsigned __int16 uint16_t; 20 | typedef unsigned __int32 uint32_t; 21 | # endif 22 | typedef signed __int64 int64_t; 23 | typedef unsigned __int64 uint64_t; 24 | # endif 25 | 26 | #else 27 | 28 | #include 29 | 30 | #endif 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /Server/skynet/src/platform.mk: -------------------------------------------------------------------------------- 1 | PLAT ?= none 2 | PLATS = linux freebsd macosx 3 | 4 | CC ?= gcc 5 | 6 | .PHONY : none $(PLATS) clean all cleanall 7 | 8 | #ifneq ($(PLAT), none) 9 | 10 | .PHONY : default 11 | 12 | default : 13 | $(MAKE) $(PLAT) 14 | 15 | #endif 16 | 17 | none : 18 | @echo "Please do 'make PLATFORM' where PLATFORM is one of these:" 19 | @echo " $(PLATS)" 20 | 21 | SKYNET_LIBS := -lpthread -lm 22 | SHARED := -fPIC --shared 23 | EXPORT := -Wl,-E 24 | 25 | linux : PLAT = linux 26 | macosx : PLAT = macosx 27 | freebsd : PLAT = freebsd 28 | 29 | macosx : SHARED := -fPIC -dynamiclib -Wl,-undefined,dynamic_lookup 30 | macosx : EXPORT := 31 | macosx linux : SKYNET_LIBS += -ldl 32 | linux freebsd : SKYNET_LIBS += -lrt 33 | 34 | # Turn off jemalloc and malloc hook on macosx 35 | 36 | macosx : MALLOC_STATICLIB := 37 | macosx : SKYNET_DEFINES :=-DNOUSE_JEMALLOC 38 | 39 | linux macosx freebsd : 40 | $(MAKE) all PLAT=$@ SKYNET_LIBS="$(SKYNET_LIBS)" SHARED="$(SHARED)" EXPORT="$(EXPORT)" MALLOC_STATICLIB="$(MALLOC_STATICLIB)" SKYNET_DEFINES="$(SKYNET_DEFINES)" 41 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/skynet/src/skynet -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/atomic.h: -------------------------------------------------------------------------------- 1 | #ifndef SKYNET_ATOMIC_H 2 | #define SKYNET_ATOMIC_H 3 | 4 | #define ATOM_CAS(ptr, oval, nval) __sync_bool_compare_and_swap(ptr, oval, nval) 5 | #define ATOM_CAS_POINTER(ptr, oval, nval) __sync_bool_compare_and_swap(ptr, oval, nval) 6 | #define ATOM_INC(ptr) __sync_add_and_fetch(ptr, 1) 7 | #define ATOM_FINC(ptr) __sync_fetch_and_add(ptr, 1) 8 | #define ATOM_DEC(ptr) __sync_sub_and_fetch(ptr, 1) 9 | #define ATOM_FDEC(ptr) __sync_fetch_and_sub(ptr, 1) 10 | #define ATOM_ADD(ptr,n) __sync_add_and_fetch(ptr, n) 11 | #define ATOM_SUB(ptr,n) __sync_sub_and_fetch(ptr, n) 12 | #define ATOM_AND(ptr,n) __sync_and_and_fetch(ptr, n) 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/luashrtbl.h: -------------------------------------------------------------------------------- 1 | #ifndef LUA_SHORT_STRING_TABLE_H 2 | #define LUA_SHORT_STRING_TABLE_H 3 | 4 | #include "lstring.h" 5 | 6 | // If you use modified lua, this macro would be defined in lstring.h 7 | #ifndef ENABLE_SHORT_STRING_TABLE 8 | 9 | static inline int luaS_shrinfo(lua_State *L) { return 0; } 10 | static inline void luaS_initshr() {} 11 | static inline void luaS_exitshr() {} 12 | static inline void luaS_expandshr(int n) {} 13 | 14 | #endif 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/malloc_hook.h: -------------------------------------------------------------------------------- 1 | #ifndef SKYNET_MALLOC_HOOK_H 2 | #define SKYNET_MALLOC_HOOK_H 3 | 4 | #include 5 | #include 6 | 7 | extern size_t malloc_used_memory(void); 8 | extern size_t malloc_memory_block(void); 9 | extern void memory_info_dump(void); 10 | extern size_t mallctl_int64(const char* name, size_t* newval); 11 | extern int mallctl_opt(const char* name, int* newval); 12 | extern void dump_c_mem(void); 13 | extern int dump_mem_lua(lua_State *L); 14 | extern size_t malloc_current_memory(void); 15 | 16 | #endif /* SKYNET_MALLOC_HOOK_H */ 17 | 18 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/skynet_daemon.h: -------------------------------------------------------------------------------- 1 | #ifndef skynet_daemon_h 2 | #define skynet_daemon_h 3 | 4 | int daemon_init(const char *pidfile); 5 | int daemon_exit(const char *pidfile); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/skynet_env.c: -------------------------------------------------------------------------------- 1 | #include "skynet.h" 2 | #include "skynet_env.h" 3 | #include "spinlock.h" 4 | 5 | #include 6 | #include 7 | 8 | #include 9 | #include 10 | 11 | struct skynet_env { 12 | struct spinlock lock; 13 | lua_State *L; 14 | }; 15 | 16 | static struct skynet_env *E = NULL; 17 | 18 | const char * 19 | skynet_getenv(const char *key) { 20 | SPIN_LOCK(E) 21 | 22 | lua_State *L = E->L; 23 | 24 | lua_getglobal(L, key); 25 | const char * result = lua_tostring(L, -1); 26 | lua_pop(L, 1); 27 | 28 | SPIN_UNLOCK(E) 29 | 30 | return result; 31 | } 32 | 33 | void 34 | skynet_setenv(const char *key, const char *value) { 35 | SPIN_LOCK(E) 36 | 37 | lua_State *L = E->L; 38 | lua_getglobal(L, key); 39 | assert(lua_isnil(L, -1)); 40 | lua_pop(L,1); 41 | lua_pushstring(L,value); 42 | lua_setglobal(L,key); 43 | 44 | SPIN_UNLOCK(E) 45 | } 46 | 47 | void 48 | skynet_env_init() { 49 | E = skynet_malloc(sizeof(*E)); 50 | SPIN_INIT(E) 51 | E->L = luaL_newstate(); 52 | } 53 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/skynet_env.h: -------------------------------------------------------------------------------- 1 | #ifndef SKYNET_ENV_H 2 | #define SKYNET_ENV_H 3 | 4 | const char * skynet_getenv(const char *key); 5 | void skynet_setenv(const char *key, const char *value); 6 | 7 | void skynet_env_init(); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/skynet_handle.h: -------------------------------------------------------------------------------- 1 | #ifndef SKYNET_CONTEXT_HANDLE_H 2 | #define SKYNET_CONTEXT_HANDLE_H 3 | 4 | #include 5 | 6 | // reserve high 8 bits for remote id 7 | #define HANDLE_MASK 0xffffff 8 | #define HANDLE_REMOTE_SHIFT 24 9 | 10 | struct skynet_context; 11 | 12 | uint32_t skynet_handle_register(struct skynet_context *); 13 | int skynet_handle_retire(uint32_t handle); 14 | struct skynet_context * skynet_handle_grab(uint32_t handle); 15 | void skynet_handle_retireall(); 16 | 17 | uint32_t skynet_handle_findname(const char * name); 18 | const char * skynet_handle_namehandle(uint32_t handle, const char *name); 19 | 20 | void skynet_handle_init(int harbor); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/skynet_harbor.h: -------------------------------------------------------------------------------- 1 | #ifndef SKYNET_HARBOR_H 2 | #define SKYNET_HARBOR_H 3 | 4 | #include 5 | #include 6 | 7 | #define GLOBALNAME_LENGTH 16 8 | #define REMOTE_MAX 256 9 | 10 | struct remote_name { 11 | char name[GLOBALNAME_LENGTH]; 12 | uint32_t handle; 13 | }; 14 | 15 | struct remote_message { 16 | struct remote_name destination; 17 | const void * message; 18 | size_t sz; 19 | int type; 20 | }; 21 | 22 | void skynet_harbor_send(struct remote_message *rmsg, uint32_t source, int session); 23 | int skynet_harbor_message_isremote(uint32_t handle); 24 | void skynet_harbor_init(int harbor); 25 | void skynet_harbor_start(void * ctx); 26 | void skynet_harbor_exit(); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/skynet_imp.h: -------------------------------------------------------------------------------- 1 | #ifndef SKYNET_IMP_H 2 | #define SKYNET_IMP_H 3 | 4 | struct skynet_config { 5 | int thread; 6 | int harbor; 7 | int profile; 8 | const char * daemon; 9 | const char * module_path; 10 | const char * bootstrap; 11 | const char * logger; 12 | const char * logservice; 13 | }; 14 | 15 | #define THREAD_WORKER 0 16 | #define THREAD_MAIN 1 17 | #define THREAD_SOCKET 2 18 | #define THREAD_TIMER 3 19 | #define THREAD_MONITOR 4 20 | 21 | void skynet_start(struct skynet_config * config); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/skynet_log.h: -------------------------------------------------------------------------------- 1 | #ifndef skynet_log_h 2 | #define skynet_log_h 3 | 4 | #include "skynet_env.h" 5 | #include "skynet.h" 6 | 7 | #include 8 | #include 9 | 10 | FILE * skynet_log_open(struct skynet_context * ctx, uint32_t handle); 11 | void skynet_log_close(struct skynet_context * ctx, FILE *f, uint32_t handle); 12 | void skynet_log_output(FILE *f, uint32_t source, int type, int session, void * buffer, size_t sz); 13 | 14 | #endif -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/skynet_malloc.h: -------------------------------------------------------------------------------- 1 | #ifndef skynet_malloc_h 2 | #define skynet_malloc_h 3 | 4 | #include 5 | 6 | #define skynet_malloc malloc 7 | #define skynet_calloc calloc 8 | #define skynet_realloc realloc 9 | #define skynet_free free 10 | #define skynet_memalign memalign 11 | #define skynet_aligned_alloc aligned_alloc 12 | #define skynet_posix_memalign posix_memalign 13 | 14 | void * skynet_malloc(size_t sz); 15 | void * skynet_calloc(size_t nmemb,size_t size); 16 | void * skynet_realloc(void *ptr, size_t size); 17 | void skynet_free(void *ptr); 18 | char * skynet_strdup(const char *str); 19 | void * skynet_lalloc(void *ptr, size_t osize, size_t nsize); // use for lua 20 | void * skynet_memalign(size_t alignment, size_t size); 21 | void * skynet_aligned_alloc(size_t alignment, size_t size); 22 | int skynet_posix_memalign(void **memptr, size_t alignment, size_t size); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/skynet_monitor.h: -------------------------------------------------------------------------------- 1 | #ifndef SKYNET_MONITOR_H 2 | #define SKYNET_MONITOR_H 3 | 4 | #include 5 | 6 | struct skynet_monitor; 7 | 8 | struct skynet_monitor * skynet_monitor_new(); 9 | void skynet_monitor_delete(struct skynet_monitor *); 10 | void skynet_monitor_trigger(struct skynet_monitor *, uint32_t source, uint32_t destination); 11 | void skynet_monitor_check(struct skynet_monitor *); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/skynet_timer.h: -------------------------------------------------------------------------------- 1 | #ifndef SKYNET_TIMER_H 2 | #define SKYNET_TIMER_H 3 | 4 | #include 5 | 6 | int skynet_timeout(uint32_t handle, int time, int session); 7 | void skynet_updatetime(void); 8 | uint32_t skynet_starttime(void); 9 | uint64_t skynet_thread_time(void); // for profile, in micro second 10 | 11 | void skynet_timer_init(void); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /Server/skynet/src/skynet-src/socket_poll.h: -------------------------------------------------------------------------------- 1 | #ifndef socket_poll_h 2 | #define socket_poll_h 3 | 4 | #include 5 | 6 | typedef int poll_fd; 7 | 8 | struct event { 9 | void * s; 10 | bool read; 11 | bool write; 12 | bool error; 13 | bool eof; 14 | }; 15 | 16 | static bool sp_invalid(poll_fd fd); 17 | static poll_fd sp_create(); 18 | static void sp_release(poll_fd fd); 19 | static int sp_add(poll_fd fd, int sock, void *ud); 20 | static void sp_del(poll_fd fd, int sock); 21 | static void sp_write(poll_fd, int sock, void *ud, bool enable); 22 | static int sp_wait(poll_fd, struct event *e, int max); 23 | static void sp_nonblocking(int sock); 24 | 25 | #ifdef __linux__ 26 | #include "socket_epoll.h" 27 | #endif 28 | 29 | #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined (__NetBSD__) 30 | #include "socket_kqueue.h" 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /Server/skynet/test/pingserver.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local queue = require "skynet.queue" 3 | local snax = require "skynet.snax" 4 | 5 | local i = 0 6 | local hello = "hello" 7 | 8 | function response.ping(hello) 9 | skynet.sleep(100) 10 | return hello 11 | end 12 | 13 | -- response.sleep and accept.hello share one lock 14 | local lock 15 | 16 | function accept.sleep(queue, n) 17 | if queue then 18 | lock( 19 | function() 20 | print("queue=",queue, n) 21 | skynet.sleep(n) 22 | end) 23 | else 24 | print("queue=",queue, n) 25 | skynet.sleep(n) 26 | end 27 | end 28 | 29 | function accept.hello() 30 | lock(function() 31 | i = i + 1 32 | print (i, hello) 33 | end) 34 | end 35 | 36 | function accept.exit(...) 37 | snax.exit(...) 38 | end 39 | 40 | function response.error() 41 | error "throw an error" 42 | end 43 | 44 | function init( ... ) 45 | print ("ping server start:", ...) 46 | snax.enablecluster() -- enable cluster call 47 | -- init queue 48 | lock = queue() 49 | end 50 | 51 | function exit(...) 52 | print ("ping server exit:", ...) 53 | end 54 | -------------------------------------------------------------------------------- /Server/skynet/test/sharemap.sp: -------------------------------------------------------------------------------- 1 | .foobar { 2 | x 0 : integer 3 | y 1 : integer 4 | s 2 : string 5 | } 6 | -------------------------------------------------------------------------------- /Server/skynet/test/testdatacenter.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local datacenter = require "skynet.datacenter" 3 | 4 | local function f1() 5 | print("====1==== wait hello") 6 | print("\t1>",datacenter.wait ("hello")) 7 | print("====1==== wait key.foobar") 8 | print("\t1>", pcall(datacenter.wait,"key")) -- will failed, because "key" is a branch 9 | print("\t1>",datacenter.wait ("key", "foobar")) 10 | end 11 | 12 | local function f2() 13 | skynet.sleep(10) 14 | print("====2==== set key.foobar") 15 | datacenter.set("key", "foobar", "bingo") 16 | end 17 | 18 | skynet.start(function() 19 | datacenter.set("hello", "world") 20 | print(datacenter.get "hello") 21 | skynet.fork(f1) 22 | skynet.fork(f2) 23 | end) 24 | -------------------------------------------------------------------------------- /Server/skynet/test/testdeadcall.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local mode = ... 4 | 5 | if mode == "test" then 6 | 7 | skynet.start(function() 8 | skynet.dispatch("lua", function (...) 9 | print("====>", ...) 10 | skynet.exit() 11 | end) 12 | end) 13 | 14 | elseif mode == "dead" then 15 | 16 | skynet.start(function() 17 | skynet.dispatch("lua", function (...) 18 | skynet.sleep(100) 19 | print("return", skynet.ret "") 20 | end) 21 | end) 22 | 23 | else 24 | 25 | skynet.start(function() 26 | local test = skynet.newservice(SERVICE_NAME, "test") -- launch self in test mode 27 | 28 | print(pcall(function() 29 | skynet.call(test,"lua", "dead call") 30 | end)) 31 | 32 | local dead = skynet.newservice(SERVICE_NAME, "dead") -- launch self in dead mode 33 | 34 | skynet.timeout(0, skynet.exit) -- exit after a while, so the call never return 35 | skynet.call(dead, "lua", "would not return") 36 | end) 37 | end 38 | -------------------------------------------------------------------------------- /Server/skynet/test/testdeadloop.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local function dead_loop() 3 | while true do 4 | skynet.sleep(0) 5 | end 6 | end 7 | 8 | skynet.start(function() 9 | skynet.fork(dead_loop) 10 | end) 11 | -------------------------------------------------------------------------------- /Server/skynet/test/testdns.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local dns = require "skynet.dns" 3 | 4 | local resolve_list = { 5 | "github.com", 6 | "stackoverflow.com", 7 | "lua.com", 8 | } 9 | 10 | skynet.start(function() 11 | print("nameserver:", dns.server()) -- set nameserver 12 | -- you can specify the server like dns.server("8.8.4.4", 53) 13 | for _ , name in ipairs(resolve_list) do 14 | local ip, ips = dns.resolve(name) 15 | for k,v in ipairs(ips) do 16 | print(name,v) 17 | end 18 | skynet.sleep(500) -- sleep 5 sec 19 | end 20 | end) 21 | -------------------------------------------------------------------------------- /Server/skynet/test/testecho.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local mode = ... 4 | 5 | if mode == "slave" then 6 | 7 | skynet.start(function() 8 | skynet.dispatch("lua", function(_,_, ...) 9 | skynet.ret(skynet.pack(...)) 10 | end) 11 | end) 12 | 13 | else 14 | 15 | skynet.start(function() 16 | local slave = skynet.newservice(SERVICE_NAME, "slave") 17 | local n = 100000 18 | local start = skynet.now() 19 | print("call salve", n, "times in queue") 20 | for i=1,n do 21 | skynet.call(slave, "lua") 22 | end 23 | print("qps = ", n/ (skynet.now() - start) * 100) 24 | 25 | start = skynet.now() 26 | 27 | local worker = 10 28 | local task = n/worker 29 | print("call salve", n, "times in parallel, worker = ", worker) 30 | 31 | for i=1,worker do 32 | skynet.fork(function() 33 | for i=1,task do 34 | skynet.call(slave, "lua") 35 | end 36 | worker = worker -1 37 | if worker == 0 then 38 | print("qps = ", n/ (skynet.now() - start) * 100) 39 | end 40 | end) 41 | end 42 | end) 43 | 44 | end 45 | -------------------------------------------------------------------------------- /Server/skynet/test/testendless.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | skynet.start(function() 4 | for i = 1, 1000000000 do -- very long loop 5 | if i%100000000 == 0 then 6 | print("Endless = ", skynet.stat "endless") 7 | print("Cost time = ", skynet.stat "time") 8 | end 9 | end 10 | skynet.exit() 11 | end) 12 | -------------------------------------------------------------------------------- /Server/skynet/test/testharborlink.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local harbor = require "skynet.harbor" 3 | 4 | skynet.start(function() 5 | print("wait for harbor 2") 6 | print("run skynet examples/config_log please") 7 | harbor.connect(2) 8 | print("harbor 2 connected") 9 | print("LOG =", skynet.address(harbor.queryname "LOG")) 10 | harbor.link(2) 11 | print("disconnected") 12 | end) 13 | -------------------------------------------------------------------------------- /Server/skynet/test/testhttp.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local httpc = require "http.httpc" 3 | local dns = require "skynet.dns" 4 | 5 | local function main() 6 | httpc.dns() -- set dns server 7 | httpc.timeout = 100 -- set timeout 1 second 8 | print("GET baidu.com") 9 | local respheader = {} 10 | local status, body = httpc.get("baidu.com", "/", respheader) 11 | print("[header] =====>") 12 | for k,v in pairs(respheader) do 13 | print(k,v) 14 | end 15 | print("[body] =====>", status) 16 | print(body) 17 | 18 | local respheader = {} 19 | dns.server() 20 | local ip = dns.resolve "baidu.com" 21 | print(string.format("GET %s (baidu.com)", ip)) 22 | local status, body = httpc.get("baidu.com", "/", respheader, { host = "baidu.com" }) 23 | print(status) 24 | end 25 | 26 | skynet.start(function() 27 | print(pcall(main)) 28 | skynet.exit() 29 | end) 30 | -------------------------------------------------------------------------------- /Server/skynet/test/testmemlimit.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local names = { 4 | "cluster", 5 | "skynet.db.dns", 6 | "skynet.db.mongo", 7 | "skynet.db.mysql", 8 | "skynet.db.redis", 9 | "sharedata", 10 | "skynet.socket", 11 | "sproto" 12 | } 13 | 14 | -- set sandbox memory limit to 1M, must set here (at start, out of skynet.start) 15 | skynet.memlimit(1 * 1024 * 1024) 16 | 17 | skynet.start(function() 18 | local a = {} 19 | local limit 20 | local ok, err = pcall(function() 21 | for i=1, 12355 do 22 | limit = i 23 | table.insert(a, {}) 24 | end 25 | end) 26 | local libs = {} 27 | for k,v in ipairs(names) do 28 | local ok, m = pcall(require, v) 29 | if ok then 30 | libs[v] = m 31 | end 32 | end 33 | skynet.error(limit, err) 34 | skynet.exit() 35 | end) 36 | -------------------------------------------------------------------------------- /Server/skynet/test/testmulticast2.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local dc = require "skynet.datacenter" 3 | local mc = require "skynet.multicast" 4 | 5 | skynet.start(function() 6 | print("remote start") 7 | local console = skynet.newservice("console") 8 | local channel = dc.get "MCCHANNEL" 9 | if channel then 10 | print("remote channel", channel) 11 | else 12 | print("create local channel") 13 | end 14 | for i=1,10 do 15 | local sub = skynet.newservice("testmulticast", "sub") 16 | skynet.call(sub, "lua", "init", channel) 17 | end 18 | local c = mc.new { 19 | channel = channel , 20 | dispatch = function(...) print("======>", ...) end, 21 | } 22 | c:subscribe() 23 | c:publish("Remote message") 24 | c:unsubscribe() 25 | c:publish("Remote message2") 26 | c:delete() 27 | skynet.exit() 28 | end) 29 | -------------------------------------------------------------------------------- /Server/skynet/test/testoverload.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local mode = ... 4 | 5 | if mode == "slave" then 6 | 7 | local CMD = {} 8 | 9 | function CMD.sum(n) 10 | skynet.error("for loop begin") 11 | local s = 0 12 | for i = 1, n do 13 | s = s + i 14 | end 15 | skynet.error("for loop end") 16 | end 17 | 18 | function CMD.blackhole() 19 | end 20 | 21 | skynet.start(function() 22 | skynet.dispatch("lua", function(_,_, cmd, ...) 23 | local f = CMD[cmd] 24 | f(...) 25 | end) 26 | end) 27 | 28 | else 29 | 30 | skynet.start(function() 31 | local slave = skynet.newservice(SERVICE_NAME, "slave") 32 | for step = 1, 20 do 33 | skynet.error("overload test ".. step) 34 | for i = 1, 512 * step do 35 | skynet.send(slave, "lua", "blackhole") 36 | end 37 | skynet.sleep(step) 38 | end 39 | local n = 1000000000 40 | skynet.error(string.format("endless test n=%d", n)) 41 | skynet.send(slave, "lua", "sum", n) 42 | end) 43 | 44 | end 45 | -------------------------------------------------------------------------------- /Server/skynet/test/testping.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local snax = require "skynet.snax" 3 | 4 | skynet.start(function() 5 | skynet.trace() 6 | local ps = snax.newservice ("pingserver", "hello world") 7 | print(ps.req.ping("foobar")) 8 | print(ps.post.hello()) 9 | print(pcall(ps.req.error)) 10 | print("Hotfix (i) :", snax.hotfix(ps, [[ 11 | 12 | local i 13 | local hello 14 | 15 | function accept.hello() 16 | i = i + 1 17 | print ("fix", i, hello) 18 | end 19 | 20 | function hotfix(...) 21 | local temp = i 22 | i = 100 23 | return temp 24 | end 25 | 26 | ]])) 27 | print(ps.post.hello()) 28 | 29 | local info = skynet.call(ps.handle, "debug", "INFO") 30 | 31 | for name,v in pairs(info) do 32 | print(string.format("%s\tcount:%d time:%f", name, v.count, v.time)) 33 | end 34 | 35 | print(ps.post.exit("exit")) -- == snax.kill(ps, "exit") 36 | skynet.exit() 37 | end) 38 | -------------------------------------------------------------------------------- /Server/skynet/test/testqueue.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local snax = require "skynet.snax" 3 | 4 | skynet.start(function() 5 | local ps = snax.uniqueservice ("pingserver", "test queue") 6 | for i=1, 10 do 7 | ps.post.sleep(true,i*10) 8 | ps.post.hello() 9 | end 10 | for i=1, 10 do 11 | ps.post.sleep(false,i*10) 12 | ps.post.hello() 13 | end 14 | 15 | skynet.exit() 16 | end) 17 | 18 | 19 | -------------------------------------------------------------------------------- /Server/skynet/test/testresponse.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local mode = ... 4 | 5 | if mode == "TICK" then 6 | -- this service whould response the request every 1s. 7 | 8 | local response_queue = {} 9 | 10 | local function response() 11 | while true do 12 | skynet.sleep(100) -- sleep 1s 13 | for k,v in ipairs(response_queue) do 14 | v(true, skynet.now()) -- true means succ, false means error 15 | response_queue[k] = nil 16 | end 17 | end 18 | end 19 | 20 | skynet.start(function() 21 | skynet.fork(response) 22 | skynet.dispatch("lua", function() 23 | table.insert(response_queue, skynet.response()) 24 | end) 25 | end) 26 | 27 | else 28 | 29 | local function request(tick, i) 30 | print(i, "call", skynet.now()) 31 | print(i, "response", skynet.call(tick, "lua")) 32 | print(i, "end", skynet.now()) 33 | end 34 | 35 | skynet.start(function() 36 | local tick = skynet.newservice(SERVICE_NAME, "TICK") 37 | 38 | for i=1,5 do 39 | skynet.fork(request, tick, i) 40 | skynet.sleep(10) 41 | end 42 | end) 43 | 44 | end -------------------------------------------------------------------------------- /Server/skynet/test/testservice/init.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local kvdb = require "kvdb" 3 | 4 | local function dbname(i) 5 | return "db"..i 6 | end 7 | skynet.start(function() 8 | for i=1,10 do 9 | kvdb.new(dbname(i)) 10 | end 11 | local idx=1 12 | for i=1,10 do 13 | local db=dbname(i) 14 | kvdb.set(db,"A",idx) 15 | idx=idx+1 16 | kvdb.set(db,"B",idx) 17 | idx=idx+1 18 | end 19 | for i=1,10 do 20 | local db=dbname(i) 21 | print(db,kvdb.get(db,"A"),kvdb.get(db,"B")) 22 | end 23 | end) 24 | -------------------------------------------------------------------------------- /Server/skynet/test/testservice/kvdb.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local service = require "skynet.service" 3 | 4 | local kvdb = {} 5 | 6 | function kvdb.get(db,key) 7 | return skynet.call(service.query(db), "lua", "get", key) 8 | end 9 | 10 | function kvdb.set(db,key, value) 11 | skynet.call(service.query(db), "lua", "set", key , value) 12 | end 13 | 14 | -- this function will be injected into an unique service, so don't refer any upvalues 15 | local function service_mainfunc(...) 16 | local skynet = require "skynet" 17 | 18 | skynet.error(...) -- (...) passed from service.new 19 | 20 | local db = {} 21 | 22 | local command = {} 23 | 24 | function command.get(key) 25 | return db[key] 26 | end 27 | 28 | function command.set(key, value) 29 | db[key] = value 30 | end 31 | 32 | -- skynet.start is compatible 33 | skynet.dispatch("lua", function(session, address, cmd, ...) 34 | skynet.ret(skynet.pack(command[cmd](...))) 35 | end) 36 | end 37 | 38 | function kvdb.new(db) 39 | return service.new(db, service_mainfunc, "Service Init") 40 | end 41 | 42 | return kvdb 43 | -------------------------------------------------------------------------------- /Server/skynet/test/teststm.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local stm = require "skynet.stm" 3 | 4 | local mode = ... 5 | 6 | if mode == "slave" then 7 | 8 | skynet.start(function() 9 | skynet.dispatch("lua", function (_,_, obj) 10 | local obj = stm.newcopy(obj) 11 | print("read:", obj(skynet.unpack)) 12 | skynet.ret() 13 | skynet.error("sleep and read") 14 | for i=1,10 do 15 | skynet.sleep(10) 16 | print("read:", obj(skynet.unpack)) 17 | end 18 | skynet.exit() 19 | end) 20 | end) 21 | 22 | else 23 | 24 | skynet.start(function() 25 | local slave = skynet.newservice(SERVICE_NAME, "slave") 26 | local obj = stm.new(skynet.pack(1,2,3,4,5)) 27 | local copy = stm.copy(obj) 28 | skynet.call(slave, "lua", copy) 29 | for i=1,5 do 30 | skynet.sleep(20) 31 | print("write", i) 32 | obj(skynet.pack("hello world", i)) 33 | end 34 | skynet.exit() 35 | end) 36 | end 37 | -------------------------------------------------------------------------------- /Server/skynet/test/testterm.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local function term() 4 | skynet.error("Sleep one second, and term the call to UNEXIST") 5 | skynet.sleep(100) 6 | local self = skynet.self() 7 | skynet.send(skynet.self(), "debug", "TERM", "UNEXIST") 8 | end 9 | 10 | skynet.start(function() 11 | skynet.fork(term) 12 | skynet.error("call an unexist named service UNEXIST, may block") 13 | pcall(skynet.call, "UNEXIST", "lua", "test") 14 | skynet.error("unblock the unexisted service call") 15 | end) 16 | -------------------------------------------------------------------------------- /Server/skynet/test/testtimer.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | 3 | local function timeout(t) 4 | print(t) 5 | end 6 | 7 | local function wakeup(co) 8 | for i=1,5 do 9 | skynet.sleep(50) 10 | skynet.wakeup(co) 11 | end 12 | end 13 | 14 | local function test() 15 | skynet.timeout(10, function() print("test timeout 10") end) 16 | for i=1,10 do 17 | print("test sleep",i,skynet.now()) 18 | skynet.sleep(1) 19 | end 20 | end 21 | 22 | skynet.start(function() 23 | test() 24 | 25 | skynet.fork(wakeup, coroutine.running()) 26 | skynet.timeout(300, function() timeout "Hello World" end) 27 | for i = 1, 10 do 28 | print(i, skynet.now()) 29 | print(skynet.sleep(100)) 30 | end 31 | skynet.exit() 32 | print("test timer exit") 33 | 34 | end) 35 | -------------------------------------------------------------------------------- /Server/skynet/test/testudp.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local socket = require "skynet.socket" 3 | 4 | local function server() 5 | local host 6 | host = socket.udp(function(str, from) 7 | print("server recv", str, socket.udp_address(from)) 8 | socket.sendto(host, from, "OK " .. str) 9 | end , "127.0.0.1", 8765) -- bind an address 10 | end 11 | 12 | local function client() 13 | local c = socket.udp(function(str, from) 14 | print("client recv", str, socket.udp_address(from)) 15 | end) 16 | socket.udp_connect(c, "127.0.0.1", 8765) 17 | for i=1,20 do 18 | socket.write(c, "hello " .. i) -- write to the address by udp_connect binding 19 | end 20 | end 21 | 22 | skynet.start(function() 23 | skynet.fork(server) 24 | skynet.fork(client) 25 | end) 26 | -------------------------------------------------------------------------------- /Server/skynet/test/time.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | skynet.start(function() 3 | print(skynet.starttime()) 4 | print(skynet.now()) 5 | 6 | skynet.timeout(1, function() 7 | print("in 1", skynet.now()) 8 | end) 9 | skynet.timeout(2, function() 10 | print("in 2", skynet.now()) 11 | end) 12 | skynet.timeout(3, function() 13 | print("in 3", skynet.now()) 14 | end) 15 | 16 | skynet.timeout(4, function() 17 | print("in 4", skynet.now()) 18 | end) 19 | skynet.timeout(100, function() 20 | print("in 100", skynet.now()) 21 | end) 22 | end) 23 | -------------------------------------------------------------------------------- /Server/start_expamples.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cd .. 3 | ./skynet/bin/liunx/skynet ./skynet/examples/config -------------------------------------------------------------------------------- /Server/start_ykserver_center.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ./skynet/bin/liunx/skynet ./ykserver/config/config_center -------------------------------------------------------------------------------- /Server/start_ykserver_gate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | screen -dmS gate ./skynet/bin/liunx/skynet ./ykserver/config/config_gate -------------------------------------------------------------------------------- /Server/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ./skynet/bin/liunx/skynet ./ykserver/config/config_gate -------------------------------------------------------------------------------- /Server/ykserver/config/config_center: -------------------------------------------------------------------------------- 1 | ---------------------------public----------------------- 2 | include("config_public") 3 | --------------------------------------------------------- 4 | 5 | logger = logpath.."center.log" 6 | logfile = "center.log" 7 | debugPort = 7000 8 | luaservice = luaservice .. ykRoot.."sercenter/?.lua;" 9 | --lua_path = lua_path .. ykRoot.."sercenter/?.lua;" 10 | 11 | -- 集群名称配置文件 12 | nodename = "center" 13 | nodeport = 9000 14 | nodeip = "127.0.0.1" 15 | servertype = "center" 16 | serverid = 1 17 | 18 | --[[ 19 | 外部网络的连接配置watchdog 20 | ]] -------------------------------------------------------------------------------- /Server/ykserver/config/config_gate: -------------------------------------------------------------------------------- 1 | ---------------------------public----------------------- 2 | include("config_public") 3 | --------------------------------------------------------- 4 | 5 | logger = logpath.."gate.log" 6 | logfile = "gate.log" 7 | debugPort = 7002 8 | luaservice = luaservice 9 | ..ykRoot .."sergate/?/main.lua;" 10 | .. ykRoot.."sergate/?.lua;" 11 | .. ykRoot.."sergate/httpser/?/main.lua;" 12 | .. ykRoot.."sergate/dbserver/?.lua;" 13 | 14 | lua_path = lua_path ..ykRoot.."sergate/dbserver/?.lua;" 15 | ..ykRoot.."sergate/httpser/?.lua;" 16 | 17 | -- 集群名称配置文件 18 | nodename = "gate" 19 | nodeport = 9001 20 | nodeip = "127.0.0.1" 21 | serverid = 2 22 | servertype = "gate" 23 | serverindex = 1 24 | isbackup = 0 25 | 26 | wsNodelay = true 27 | wsListenPort = 9023 28 | wsMaxClient = 30000 29 | 30 | httpport = 9100 31 | 32 | backupToMysqlTime = 90 --备份数据到数据库的时间单位(秒) 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Server/ykserver/global/preload.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Generated by EmmyLua(https://github.com/EmmyLua) 3 | --- Created by Administrator. 4 | --- DateTime: 2018/8/11 17:25 5 | --- 6 | require("errorCode") 7 | require("serverType") 8 | require("serviceNames") 9 | require("protoMap") 10 | require("utils") 11 | local protoUtil = require("protoUtil") 12 | protoUtil.init() -------------------------------------------------------------------------------- /Server/ykserver/global/serverType.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Generated by EmmyLua(https://github.com/EmmyLua) 3 | --- Created by Administrator. 4 | --- DateTime: 2018/8/10 19:43 5 | --- 6 | 7 | local this = 8 | { 9 | GATE = "gate", --网关服务器 10 | DB = "gate", --数据服 11 | } 12 | return this -------------------------------------------------------------------------------- /Server/ykserver/global/serviceNames.lua: -------------------------------------------------------------------------------- 1 | local this = 2 | { 3 | } 4 | 5 | this.uniqueService = { 6 | NODE_MONITOR = ".nodeMonitord", --节点监控服务 7 | HTTPCLI = ".webclientser", --节点监控服务 8 | SERVER_LOG = ".server_log", --服务器日志服务 9 | WSWATCHDOG = ".wswatchdog", --websocket网关服务 10 | wsgate = ".wsgate", --websocket网关服务 11 | dbserver = ".dbserver", --DB 服务 12 | mySqlDB = ".mySqlDB", --mysql 服务 13 | httpser = ".httpser", --Http 服务 14 | test = ".test", --测试服务 15 | auth = ".auth", --验证服务 16 | } 17 | this.unUniqueService = { 18 | } 19 | 20 | this.dbModeName = 21 | { 22 | auth = "auth" 23 | } 24 | this.listenerGate = 25 | { 26 | 27 | } 28 | for i, v in pairs(this.uniqueService) do 29 | this[i] = v 30 | end 31 | return this -------------------------------------------------------------------------------- /Server/ykserver/global/test_aes.lua: -------------------------------------------------------------------------------- 1 | local aes = require "bgcrypto" 2 | local crypt = require "skynet.crypt" 3 | 4 | local cbc_encrypt = aes.cbc_encrypter() 5 | local cbc_decrypt = aes.cbc_decrypter() 6 | local data = crypt.base64decode("+idNMabSYQHqmADLWIHrOc+I1ZyEgKrKTzzPQ+v8uQB1XRGlaHo/PaEtfjlqfFKDtABb+iqQXG/hZYZwZFClYykWoZr8VVWohAueAn2vE+GWFCyvAZfEIVPV14LlspLsqOhfIgb2OL553n8DnceV02lsRHbk3u1AmQ1ZKDXyw/8xyCkr7NRZ90GWniMLmN2uEOX2/9G705wQ5u8zwi5iDTGDczmPbXm6bu0bfmLsbUW+LXdn5twXtb2+Mr64QeB4iYuegcukUBiCR4PXy0ezTga+5Hm2L+RxfwbMSN3PGNg/dQ4qOo8vIGWo5TCUp+ptTpUAHMRMwvxJMUhPVd6iwHAM9QMRCrtn5oW/Sefe0TtW1s05O34q//vMMjlZQUUqiNk+n92bVm/1SutGwJhqytXnboa4MZJ3SEX6LFYK4miBVWU3YD1KyzLMtPqwkCOevoLD5sLDI75nVraO3x8YDXREqHxRNV3DXB5aQKGDWQo=") 7 | local key = crypt.base64decode("MAnQvk4fW9n7MxAhk2YL1w==") 8 | --key = { string.byte(key, 1, #key) } 9 | local _iv = crypt.base64decode("zmfxQKrf6b6K3YU8+74rrg==") 10 | --_iv = { string.byte(_iv, 1, #_iv) } 11 | assert(cbc_decrypt:open(key, _iv)) 12 | local decrypt = assert(cbc_decrypt:write(data)) 13 | print("解密完成:"..decrypt) -------------------------------------------------------------------------------- /Server/ykserver/lualib/json.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Generated by EmmyLua(https://github.com/EmmyLua) 3 | --- Created by Administrator. 4 | --- DateTime: 2018/9/13 0013 12:06 5 | --- 6 | local json = {} 7 | 8 | local cjson 9 | local function safeLoad() 10 | cjson = require("cjson") 11 | end 12 | 13 | if not pcall(safeLoad) then 14 | cjson = nil 15 | end 16 | 17 | function json.encode(var) 18 | local status, result = pcall(cjson.encode, var) 19 | if status then return result end 20 | print(string.format("json.encode() - encoding failed: %s", tostring(result))) 21 | end 22 | 23 | function json.decode(text) 24 | local status, result = pcall(cjson.decode, text) 25 | if status then return result end 26 | print(string.format("json.decode() - decoding failed: %s", tostring(result))) 27 | return nil 28 | end 29 | 30 | function json.encode_sparse_array(...) 31 | cjson.encode_sparse_array(...) 32 | end 33 | 34 | if cjson then 35 | json.null = cjson.null 36 | else 37 | json = nil 38 | end 39 | 40 | return json -------------------------------------------------------------------------------- /Server/ykserver/lualib/simpleClass.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Generated by EmmyLua(https://github.com/EmmyLua) 3 | --- Created by Administrator. 4 | --- DateTime: 2018/8/28 16:30 5 | --- 6 | 7 | local function class(base) 8 | local o = {} 9 | --base = base or {} 10 | setmetatable(o,base) 11 | o.__index = o 12 | o.super = base 13 | o.new = function (...) 14 | local t = {} 15 | setmetatable(t, o) 16 | local initFunc 17 | initFunc = 18 | function (c,...) 19 | if c.super then 20 | initFunc(c.super,...) 21 | end 22 | if c._init then 23 | c._init(o,...) 24 | end 25 | end 26 | initFunc(t,...) 27 | return t 28 | end 29 | return o 30 | end 31 | 32 | return class -------------------------------------------------------------------------------- /Server/ykserver/protos/packbase.proto: -------------------------------------------------------------------------------- 1 | 2 | message test { 3 | optional string str = 1; 4 | 5 | } 6 | message packbase { 7 | optional int32 cmd = 1; 8 | optional int32 msgid = 2; 9 | optional int32 errorcode = 3; 10 | optional bytes contentBuff = 4; 11 | 12 | } 13 | message UserData { 14 | optional int32 roleId = 1; 15 | optional string nickName = 2; 16 | optional string headUrl = 3; 17 | optional int32 sex = 4; 18 | optional string signature = 5; 19 | optional int32 constellation = 6; 20 | optional string county = 7; 21 | optional string city = 8; 22 | optional string weChat = 9; 23 | optional int32 gold = 10; 24 | optional int32 diamond = 11; 25 | 26 | } 27 | message loginReq { 28 | optional string token = 1; 29 | optional int32 roleid = 2; 30 | 31 | } 32 | message loginResp { 33 | optional UserData roleinfo = 1; 34 | 35 | } 36 | message tickOutEvent { 37 | optional int32 tickType = 1; 38 | 39 | } -------------------------------------------------------------------------------- /Server/ykserver/sercenter/main.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local nodeMonitor = require "node_monitor" 3 | local debugPort = skynet.getenv("debugPort") 4 | skynet.start(function() 5 | skynet.error("------debug_console----------"); 6 | skynet.uniqueservice("debug_console",tonumber(debugPort)) 7 | skynet.uniqueservice("server_log") 8 | skynet.uniqueservice("NodeMonitord") 9 | nodeMonitor.start() 10 | skynet.error("centerserver start!") 11 | skynet.exit() 12 | end) 13 | -------------------------------------------------------------------------------- /Server/ykserver/sergate/authser/impl.lua: -------------------------------------------------------------------------------- 1 | --- Created by Administrator. 2 | --- DateTime: 2018/8/20 0:30 3 | --- 4 | 5 | local ctrl = require("ctrl") 6 | local skynet = require("skynet") 7 | local cjson = require("cjson") 8 | local errorCode = require("errorCode") 9 | local dataUtil = require("datamgr.dataSerUtil") 10 | local serviceName = require("serviceNames") 11 | local this = {} 12 | ---@param gs Gamesession 13 | function this.login(gs,loginReq) 14 | local ec,data = errorCode.SystemError.unknow,nil 15 | if not loginReq then 16 | return ec 17 | end 18 | local token = loginReq.token 19 | local roleid = loginReq.roleId 20 | ec,data = ctrl.login(gs,token,roleid) 21 | return ec,data 22 | end 23 | 24 | return this -------------------------------------------------------------------------------- /Server/ykserver/sergate/authser/main.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Generated by EmmyLua(https://github.com/EmmyLua) 3 | --- Created by Administrator. 4 | --- DateTime: 2018/8/20 0:24 5 | --- 6 | local skynet = require "skynet" 7 | local service = require "service_base" 8 | local serviceNames = require("serviceNames") 9 | local command = service.command 10 | 11 | 12 | function command.init() 13 | end 14 | 15 | function service.onStart() 16 | skynet.register(serviceNames.auth) 17 | end 18 | 19 | service.modules.auth = require("impl") 20 | service.start() -------------------------------------------------------------------------------- /Server/ykserver/sergate/chatserver/impl.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Generated by EmmyLua(https://github.com/EmmyLua) 3 | --- Created by Administrator. 4 | --- DateTime: 2018/9/14 0014 21:03 5 | --- 6 | local ctrl = require("ctrl") 7 | 8 | local this = {} 9 | 10 | function this.login(gamesession) 11 | return ctrl.login(gamesession) 12 | end 13 | 14 | function this.chat(gamesession,data) 15 | return ctrl.chat(gamesession,data) 16 | end 17 | 18 | function this.quit(gamesession) 19 | return ctrl.quit(gamesession) 20 | end 21 | 22 | 23 | 24 | return this -------------------------------------------------------------------------------- /Server/ykserver/sergate/chatserver/main.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Generated by EmmyLua(https://github.com/EmmyLua) 3 | --- Created by Administrator. 4 | --- DateTime: 2018/9/14 0014 20:46 5 | --- 6 | local skynet = require("skynet") 7 | local service = require "service_base" 8 | local serviceNames = require "serviceNames" 9 | 10 | local ctrl = require("ctrl") 11 | service.modules.chatserver = require("impl") 12 | local command = service.command 13 | 14 | function command.userOffline(gs) 15 | ctrl.userOffline(gs) 16 | --instanceDesk:userOffline(gs) 17 | end 18 | 19 | function service.onStart() 20 | ctrl.init() 21 | print("chat server start") 22 | skynet.register(serviceNames.uniqueService.chatserver) 23 | end 24 | 25 | service.start() -------------------------------------------------------------------------------- /Server/ykserver/sergate/dbserver/config/cfg.lua: -------------------------------------------------------------------------------- 1 | local this = 2 | { 3 | redisCfg = 4 | { 5 | host = "192.168.1.10", 6 | port = 6379 , 7 | db = 0 8 | }, 9 | mysqlCfg = 10 | { 11 | host = "192.168.1.14", 12 | port = 3306, 13 | database = "gameserver2", 14 | user = "root", 15 | password = "system", 16 | } 17 | } 18 | return this -------------------------------------------------------------------------------- /Server/ykserver/sergate/dbserver/data/accountData.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Generated by EmmyLua(https://github.com/EmmyLua) 3 | --- Created by Administrator. 4 | --- DateTime: 2018/8/23 18:32 5 | --- 6 | 7 | local class = require("class") 8 | local dataBase = require("data.dataBase") 9 | ---@class accountData : DataBase 10 | ---@field account string 11 | ---@field pwd string 12 | ---@field userid string 13 | local this = class(dataBase) 14 | this.personalId = "accountdata" 15 | this.needSavetoDB = false 16 | this.keyName = "account" 17 | 18 | this.columnNameOptions = 19 | { 20 | account="varchar(255) NOT NULL", 21 | pwd="varchar(255)", 22 | userid ="int", 23 | } 24 | 25 | function this:_init(account,pwd,userid) 26 | self.account = account 27 | self.pwd = pwd 28 | self.userid = userid 29 | end 30 | 31 | return this -------------------------------------------------------------------------------- /Server/ykserver/sergate/dbserver/data/changeDataFlag.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Created by Administrator. 3 | --- DateTime: 2018/8/17 23:17 4 | --- 5 | 6 | ---@class ChangeDataInfo 7 | ---@field data string 8 | ---@field flag ChangeDataFlag 9 | ---@field personalId string 10 | ---@field keyName string 11 | ---@field secondaryKeys table 12 | ---@field keyValue string 13 | ---@field needSavetoDB bool 14 | 15 | ---@class ChangeDataFlag 16 | local m = 17 | { 18 | Add = 1, 19 | Update = 2, 20 | Del = 3, 21 | } 22 | return m -------------------------------------------------------------------------------- /Server/ykserver/sergate/dbserver/datamgr/authDB.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/ykserver/sergate/dbserver/datamgr/authDB.lua -------------------------------------------------------------------------------- /Server/ykserver/sergate/httpser/handlehttp/handlerWXLogin.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/Server/ykserver/sergate/httpser/handlehttp/handlerWXLogin.lua -------------------------------------------------------------------------------- /Server/ykserver/sergate/httpser/main.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Created by Administrator. 3 | --- DateTime: 2018/8/18 19:14 4 | --- 5 | local skynet = require "skynet" 6 | local socket = require "skynet.socket" 7 | local httpport = tonumber(skynet.getenv("httpport")) or 8001 8 | skynet.start(function() 9 | local agent = {} 10 | for i= 1, 10 do 11 | -- 启动 20 个代理服务用于处理 http 请求 12 | agent[i] = skynet.newservice("httpagent") 13 | end 14 | local balance = 1 15 | -- 监听一个 web 端口 16 | local id = socket.listen("0.0.0.0", httpport) 17 | skynet.error("开始监听httpurl=0.0.0.0:"..httpport) 18 | socket.start(id , function(id, addr) 19 | -- 当一个 http 请求到达的时候, 把 socket id 分发到事先准备好的代理中去处理。 20 | --skynet.error(string.format("%s connected, pass it to agent :%08x", addr, agent[balance])) 21 | skynet.send(agent[balance], "lua", id) 22 | balance = balance + 1 23 | if balance > #agent then 24 | balance = 1 25 | end 26 | 27 | end) 28 | end) -------------------------------------------------------------------------------- /Server/ykserver/sergate/main.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local serviceNames = require("serviceNames") 3 | local crypt = require("skynet.crypt") 4 | local utils = require("utils") 5 | --local nodeMonitor = require "node_monitor" 6 | local debugPort = skynet.getenv("debugPort") 7 | local wsConfig = 8 | { 9 | address = "0.0.0.0", 10 | port = tonumber(skynet.getenv("wsListenPort")), 11 | maxclient = tonumber(skynet.getenv("wsMaxClient")), 12 | nodelay = skynet.getenv("wsNodelay") 13 | } 14 | 15 | skynet.start(function() 16 | skynet.uniqueservice("debug_console", tonumber(debugPort)) 17 | 18 | skynet.uniqueservice("server_log") 19 | skynet.uniqueservice("webclientser") 20 | skynet.uniqueservice("ykwsgate") 21 | 22 | skynet.call(serviceNames.wsgate,"lua","open",wsConfig) 23 | 24 | skynet.uniqueservice("httpser") 25 | 26 | skynet.uniqueservice("dbserver") 27 | 28 | skynet.uniqueservice("test") 29 | 30 | skynet.uniqueservice("authser") 31 | 32 | skynet.error(" start!") 33 | skynet.exit() 34 | end) 35 | -------------------------------------------------------------------------------- /Server/ykserver/sergate/test/impl.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Generated by EmmyLua(https://github.com/EmmyLua) 3 | --- Created by Administrator. 4 | --- DateTime: 2018/8/20 0:30 5 | --- 6 | local skynet = require("skynet") 7 | local cjson = require("cjson") 8 | local this = {} 9 | ---@param gs Gamesession 10 | ---@param data any 11 | function this.test(gs,data) 12 | --skynet.error("收到服务器消息:100"..cjson.encode(data)) 13 | local ec = 0 14 | return ec,data 15 | end 16 | return this -------------------------------------------------------------------------------- /Server/ykserver/sergate/test/main.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Generated by EmmyLua(https://github.com/EmmyLua) 3 | --- Created by Administrator. 4 | --- DateTime: 2018/8/20 0:24 5 | --- 6 | local skynet = require "skynet" 7 | local service = require "service_base" 8 | local serviceNames = require("serviceNames") 9 | local command = service.command 10 | 11 | 12 | function command.init() 13 | end 14 | 15 | function service.onStart() 16 | skynet.register(serviceNames.test) 17 | end 18 | 19 | service.modules.test = require("impl") 20 | service.start() 21 | 22 | -------------------------------------------------------------------------------- /Server/ykserver/service/service_base.lua: -------------------------------------------------------------------------------- 1 | local skynet = require "skynet" 2 | local distributeClientMsg = require "distributeClientMsg" 3 | local protoUtils = require("protoUtil") 4 | local cjson = require("cjson") 5 | local ServiceBase = { 6 | name = nil, 7 | modules = {}, 8 | command = nil, 9 | } 10 | 11 | distributeClientMsg.ServiceBase = ServiceBase 12 | ServiceBase.command = require "command_base" 13 | local command = ServiceBase.command 14 | 15 | --转发客户端的请求 16 | function command.redirect(ctx, buffer) 17 | distributeClientMsg.redirect(ctx, buffer) 18 | end 19 | 20 | --转发服务间的请求 21 | function command.redirectS2S(module,cmd,ctx, ...) 22 | return distributeClientMsg.redirectS2S(module,cmd,ctx, ...) 23 | end 24 | 25 | function command.gc() 26 | collectgarbage("collect") 27 | end 28 | 29 | function ServiceBase.onStart() 30 | 31 | end 32 | 33 | function ServiceBase.start() 34 | skynet.start(function() 35 | ServiceBase.onStart() 36 | end) 37 | end 38 | 39 | return ServiceBase 40 | -------------------------------------------------------------------------------- /Server/打包.bat: -------------------------------------------------------------------------------- 1 | cd .. 2 | md .\Release 3 | cd .\Release 4 | rd /s /q .\pack 5 | md .\pack 6 | md .\pack\log 7 | xcopy .\..\server\skynet\lualib\* .\pack\skynet\lualib\ /s /d 8 | xcopy .\..\server\skynet\bin\* .\pack\skynet\bin\ /s /d 9 | xcopy .\..\server\skynet\service\* .\pack\skynet\service\ /s /d 10 | copy .\..\server\start_ykserver_gate.sh .\pack\start_ykserver_gate.sh 11 | xcopy .\..\server\ykserver\* .\pack\ykserver\ /s /d 12 | for /r .\pack %%i in (*.lua) do ( 13 | .\..\luac5.3.5\luac_64.exe -o %%i %%i 14 | ) 15 | pause -------------------------------------------------------------------------------- /luac5.3.5/luac_32.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/luac5.3.5/luac_32.exe -------------------------------------------------------------------------------- /luac5.3.5/luac_64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YKPublicGame/YKServerBySkynet/3b819b1b972cc9a403dcc0e9bf4c3599401f1175/luac5.3.5/luac_64.exe --------------------------------------------------------------------------------