https://github.com/yongkangchen/toynet
A simple event-driven I/O and coroutine based for Lua
https://github.com/yongkangchen/toynet
Last synced: about 1 year ago
JSON representation
A simple event-driven I/O and coroutine based for Lua
- Host: GitHub
- URL: https://github.com/yongkangchen/toynet
- Owner: yongkangchen
- License: mit
- Created: 2016-06-05T07:58:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-10-12T21:56:10.000Z (over 3 years ago)
- Last Synced: 2025-03-20T22:09:56.196Z (about 1 year ago)
- Language: Lua
- Homepage:
- Size: 35.2 KB
- Stars: 13
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome-lua - toynet - A simple event-driven I/O for Lua, coroutine based. (Resources / Programming Paradigms)
README
# toynet
A simple event-driven I/O for Lua, coroutine based.
Support epoll and kevent
# build
### build with scons
* set lua/luajit header path in make.sh
* install scons
* run command: sh make.sh
### build with make
* put luajit source code directory in ./luajit/
* run command: make
# run
* with luajit command: luajit example/echo_svr.lua
* with lua command: lua example/echo_svr.lua