mod_c2s,mod_s2s: Fire event just before writes
Could allow e.g. a XEP-0198 implementation to efficiently send ack
requests at optimal times without using timers or nextTick.
local record lib
enum signal
"SIGABRT"
"SIGALRM"
"SIGBUS"
"SIGCHLD"
"SIGCLD"
"SIGCONT"
"SIGFPE"
"SIGHUP"
"SIGILL"
"SIGINT"
"SIGIO"
"SIGIOT"
"SIGKILL"
"SIGPIPE"
"SIGPOLL"
"SIGPROF"
"SIGQUIT"
"SIGSEGV"
"SIGSTKFLT"
"SIGSTOP"
"SIGSYS"
"SIGTERM"
"SIGTRAP"
"SIGTTIN"
"SIGTTOU"
"SIGURG"
"SIGUSR1"
"SIGUSR2"
"SIGVTALRM"
"SIGWINCH"
"SIGXCPU"
"SIGXFSZ"
end
signal : function (integer | signal, function, boolean) : boolean
raise : function (integer | signal)
kill : function (integer, integer | signal)
-- enum : integer
end
return lib