From 5478f357b62062ffccfecb4c7b5fc607f0e7a518 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 10 Feb 2019 18:10:14 -0500 Subject: 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. --- src/shared/lua_api/stream.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/lua_api/stream.hpp') 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 -#include +#include //Char is not definitvely a byte, read the fucking standard #define byte char -- cgit v1.2.3-70-g09d2