-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assorted questions #97
Comments
@dvv, thank-you for your questions!
|
can we (do we have interface to) pass out-of-band file descriptors to write() calls? |
@dvv yes, these are handled by _master[1] and _worker[2]. See net.lua[3] or examples/server-chat.lua[4] for an example on how to use the API. The interface is exposed via the mbox object. [1] https://github.com/connectFree/lev/blob/master/lib/lev/_master.lua |
@dvv specifically, FDs can be sent on IPC pipes via the write method like so: local fd = 9
ipc_pipe:write("this is data", fd) FDs can be received on ipc-enabled pipes with this function signature: ipc_client:read_start(function(c, nread, buf, fd, type)
p("we have received an fd:", fd, "of type:", type)
end) |
i'd like to be able to use lev as loadable module. for that, loop initialization etc. must be inside |
@dvv Lev is using a modified version of LuaJIT, so not all code may be compatible. |
The text was updated successfully, but these errors were encountered: