diff options
| author | Alexander Pickering <alex@cogarr.net> | 2020-07-29 12:18:10 -0400 |
|---|---|---|
| committer | Alexander Pickering <alex@cogarr.net> | 2020-07-29 12:18:10 -0400 |
| commit | 27ece5603fc0cde89183ceb61f915fa64fef1061 (patch) | |
| tree | d7d3407b21bb6a13bf81f57f71ddf91176760077 /src/lua-nng.h | |
| parent | a7ff1b815987b0c1b3ded5701845e0eb52f0592c (diff) | |
| download | lua-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.h')
| -rw-r--r-- | src/lua-nng.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/lua-nng.h b/src/lua-nng.h new file mode 100644 index 0000000..80b716d --- /dev/null +++ b/src/lua-nng.h @@ -0,0 +1,26 @@ +#define NNG_STATIC_LIB
+
+#include <nng/nng.h>
+
+#include <nng/transport/inproc/inproc.h>
+#include <nng/transport/ipc/ipc.h>
+#include <nng/transport/tcp/tcp.h>
+#include <nng/transport/tls/tls.h>
+#include <nng/transport/zerotier/zerotier.h>
+
+#include <nng/protocol/pair1/pair.h>
+#include <nng/protocol/bus0/bus.h>
+#include <nng/protocol/pubsub0/pub.h>
+#include <nng/protocol/pubsub0/sub.h>
+#include <nng/protocol/pipeline0/pull.h>
+#include <nng/protocol/pipeline0/push.h>
+#include <nng/protocol/reqrep0/req.h>
+#include <nng/protocol/reqrep0/rep.h>
+#include <nng/protocol/survey0/respond.h>
+#include <nng/protocol/survey0/survey.h>
+
+#include <nng/supplemental/util/platform.h>
+
+nng_socket* tosocket(lua_State *L, int offset);
+nng_listener* tolistener(lua_State *L, int offset);
+nng_dialer* todialer(lua_State *L, int offset);
|
