forked from socoding/node-lua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode-lua.lua
More file actions
33 lines (23 loc) · 1.79 KB
/
node-lua.lua
File metadata and controls
33 lines (23 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
14. 考虑lua_service的gc[考虑一直没有唤醒的服务的lua垃圾回收]
17. 研究lua hook,如何中断死循环和调试(输入)
22.to be implemented / to be fixed
23.udp http https
24.lua socket tcp socket 迁移
io 阻塞非阻塞? setvbuf
{"__tostring", f_tostring},
热更新
优化lua shared proto 锁,不使用原子锁?
udp tty 在线调试
freebsd:
1. pkg 命令安装软件 pkg安装pkg自身 pkg install
2. sshd 服务器配置 /etc/ssh/sshd_config : PermitRootLogin yes
3. make 和 其它操作系统不一样,需要安装gmake
warning 编译lua的共享dll库,需要在编译时开启 LUA_BUILD_AS_DLL 这个宏(以便在vc下边下编译时导出符号) (外部模块库需要同时开启 LUA_CORE 这个宏,以便使用 LUAMOD_API 这个宏来导出luaopen接口)
warning 使用lua的dll扩展库,需要把lua整个打成dll动态库,主进程和其它扩展库都需要使用动态链接lua库的方式来编译或生成,不然lua的版本校验将不会通过(动态库实际使用lua.dll,编译和链接时使用lua.lib)
如果是静态库,那么每个模块加载该静态库后,每个模块都分别有一个拷贝。如果是动态库,每个模块加载该动态库后,都只有一个拷贝。
http://blog.csdn.net/rheostat/article/details/18796911
Don't link your C module with liblua.a when you create a.so from it.
For examples, see my page of Lua libraries: http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/ .
You can link liblua.a statically into your main program but you have to export its symbols by adding -Wl,-E at link time.
That's how the Lua interpreter is built in Linux.
A node completation of lua which support sync and async remote procedure call, and task-multiplexing support(in muti-thread mode with no useless wakeup)