aboutsummaryrefslogtreecommitdiff
path: root/src/lua-nng-common.h
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2020-07-29 12:18:10 -0400
committerAlexander Pickering <alex@cogarr.net>2020-07-29 12:18:10 -0400
commit27ece5603fc0cde89183ceb61f915fa64fef1061 (patch)
treed7d3407b21bb6a13bf81f57f71ddf91176760077 /src/lua-nng-common.h
parenta7ff1b815987b0c1b3ded5701845e0eb52f0592c (diff)
downloadlua-nng-27ece5603fc0cde89183ceb61f915fa64fef1061.tar.gz
lua-nng-27ece5603fc0cde89183ceb61f915fa64fef1061.tar.bz2
lua-nng-27ece5603fc0cde89183ceb61f915fa64fef1061.zip
Added recv_any()
recv_any() is a function that takes multiple sockets and waits for one or more of them to receive. See the unit test for examples.
Diffstat (limited to 'src/lua-nng-common.h')
-rw-r--r--src/lua-nng-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua-nng-common.h b/src/lua-nng-common.h
new file mode 100644
index 0000000..a56dd8a
--- /dev/null
+++ b/src/lua-nng-common.h
@@ -0,0 +1,6 @@
+#include <lua.h>
+#include <lualib.h>
+#include <lauxlib.h>
+
+// lua runtime's traceback function
+int traceback (lua_State *L);