… | |
… | |
4364 | .IP "Lua" 4 |
4364 | .IP "Lua" 4 |
4365 | .IX Item "Lua" |
4365 | .IX Item "Lua" |
4366 | Brian Maher has written a partial interface to libev for lua (at the |
4366 | Brian Maher has written a partial interface to libev for lua (at the |
4367 | time of this writing, only \f(CW\*(C`ev_io\*(C'\fR and \f(CW\*(C`ev_timer\*(C'\fR), to be found at |
4367 | time of this writing, only \f(CW\*(C`ev_io\*(C'\fR and \f(CW\*(C`ev_timer\*(C'\fR), to be found at |
4368 | http://github.com/brimworks/lua\-ev <http://github.com/brimworks/lua-ev>. |
4368 | http://github.com/brimworks/lua\-ev <http://github.com/brimworks/lua-ev>. |
|
|
4369 | .IP "Javascript" 4 |
|
|
4370 | .IX Item "Javascript" |
|
|
4371 | Node.js (<http://nodejs.org>) uses libev as the underlying event library. |
|
|
4372 | .IP "Others" 4 |
|
|
4373 | .IX Item "Others" |
|
|
4374 | There are others, and I stopped counting. |
4369 | .SH "MACRO MAGIC" |
4375 | .SH "MACRO MAGIC" |
4370 | .IX Header "MACRO MAGIC" |
4376 | .IX Header "MACRO MAGIC" |
4371 | Libev can be compiled with a variety of options, the most fundamental |
4377 | Libev can be compiled with a variety of options, the most fundamental |
4372 | of which is \f(CW\*(C`EV_MULTIPLICITY\*(C'\fR. This option determines whether (most) |
4378 | of which is \f(CW\*(C`EV_MULTIPLICITY\*(C'\fR. This option determines whether (most) |
4373 | functions and callbacks have an initial \f(CW\*(C`struct ev_loop *\*(C'\fR argument. |
4379 | functions and callbacks have an initial \f(CW\*(C`struct ev_loop *\*(C'\fR argument. |
… | |
… | |
4668 | .IX Item "EV_WIN32_CLOSE_FD(fd)" |
4674 | .IX Item "EV_WIN32_CLOSE_FD(fd)" |
4669 | If programs implement their own fd to handle mapping on win32, then this |
4675 | If programs implement their own fd to handle mapping on win32, then this |
4670 | macro can be used to override the \f(CW\*(C`close\*(C'\fR function, useful to unregister |
4676 | macro can be used to override the \f(CW\*(C`close\*(C'\fR function, useful to unregister |
4671 | file descriptors again. Note that the replacement function has to close |
4677 | file descriptors again. Note that the replacement function has to close |
4672 | the underlying \s-1OS\s0 handle. |
4678 | the underlying \s-1OS\s0 handle. |
|
|
4679 | .IP "\s-1EV_USE_WSASOCKET\s0" 4 |
|
|
4680 | .IX Item "EV_USE_WSASOCKET" |
|
|
4681 | If defined to be \f(CW1\fR, libev will use \f(CW\*(C`WSASocket\*(C'\fR to create its internal |
|
|
4682 | communication socket, which works better in some environments. Otherwise, |
|
|
4683 | the normal \f(CW\*(C`socket\*(C'\fR function will be used, which works better in other |
|
|
4684 | enviornments. |
4673 | .IP "\s-1EV_USE_POLL\s0" 4 |
4685 | .IP "\s-1EV_USE_POLL\s0" 4 |
4674 | .IX Item "EV_USE_POLL" |
4686 | .IX Item "EV_USE_POLL" |
4675 | If defined to be \f(CW1\fR, libev will compile in support for the \f(CW\*(C`poll\*(C'\fR(2) |
4687 | If defined to be \f(CW1\fR, libev will compile in support for the \f(CW\*(C`poll\*(C'\fR(2) |
4676 | backend. Otherwise it will be enabled on non\-win32 platforms. It |
4688 | backend. Otherwise it will be enabled on non\-win32 platforms. It |
4677 | takes precedence over select. |
4689 | takes precedence over select. |