aboutsummaryrefslogtreecommitdiff
path: root/src/shared/lua_api/stream.hpp
diff options
context:
space:
mode:
authorAlexander <alex@cogarr.net>2019-02-10 18:10:14 -0500
committerAlexander <alex@cogarr.net>2019-02-10 18:10:14 -0500
commit5478f357b62062ffccfecb4c7b5fc607f0e7a518 (patch)
treec850f7137cd350962c3911ce11f94da55f41d0d0 /src/shared/lua_api/stream.hpp
parent6326eba6d844d079edf51b44bab8b9f9c21a8fb7 (diff)
downloadbrokengine-5478f357b62062ffccfecb4c7b5fc607f0e7a518.tar.gz
brokengine-5478f357b62062ffccfecb4c7b5fc607f0e7a518.tar.bz2
brokengine-5478f357b62062ffccfecb4c7b5fc607f0e7a518.zip
Corrected networking examples
changed the api for interacting with sockets, sockets now have a callback, `socket:receive(function(stream) ... end)`, which they can use to decide what to do when called. Sockets also have a block:recv() function, which will block EVERYTHING until the socket receives data. This should probably not be used.
Diffstat (limited to 'src/shared/lua_api/stream.hpp')
-rw-r--r--src/shared/lua_api/stream.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/lua_api/stream.hpp b/src/shared/lua_api/stream.hpp
index 74a0e69..ff48945 100644
--- a/src/shared/lua_api/stream.hpp
+++ b/src/shared/lua_api/stream.hpp
@@ -1,5 +1,5 @@
#include <stdlib.h>
-#include <nng.h>
+#include <nng/nng.h>
//Char is not definitvely a byte, read the fucking standard
#define byte char