]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/lua: bind `struct network` into lua
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 10 Jun 2024 13:52:42 +0000 (15:52 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 22 Jul 2024 10:56:01 +0000 (12:56 +0200)
commitf6433785959674de3a7ee3e582bf4480e34e94e3
treeb1eb076e87053ca920737d795d4cc2cec87aa4a5
parente24626941d0bbe91a20875c908bf9eadc72ae2ab
daemon/lua: bind `struct network` into lua

Because why not.  It's easy and it might become useful one day.
Unfortunately porting this to 5.x was a bit involved,
as there's no `the_network` yet - I reordered struct engine for it.

> (require 'ffi').C.the_worker.engine.net.tcp.user_timeout
1000
daemon/engine.h
daemon/lua/kres-gen-31.lua
daemon/lua/kres-gen-32.lua
daemon/lua/kres-gen.sh