aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/crypto.md5
-rw-r--r--docs/net.md9
-rw-r--r--readme.md9
-rw-r--r--src/net.c1
4 files changed, 14 insertions, 10 deletions
diff --git a/docs/crypto.md b/docs/crypto.md
index f82a006..c988211 100644
--- a/docs/crypto.md
+++ b/docs/crypto.md
@@ -4,11 +4,6 @@
\* is optional
-sadly i didnt think about being able to update hashes, using the common init-update-final.
-this is a pretty big problem meaning the input must be given at once, this is better for passwords,
-but bad for big files. because of this, i decided not to support inputs over 2^64 characters (which is an
-insane amount anyways). i likely will go back and rewrite all of these to fix both of these issues.
-
|name|out len|other args|extra|incremental|
|--|--|--|--|--|
| adler32 | 32 | nil | | y |
diff --git a/docs/net.md b/docs/net.md
index 8becf4c..8c4f53b 100644
--- a/docs/net.md
+++ b/docs/net.md
@@ -10,6 +10,15 @@ the function will be ran on initilization, the argument has info on the server a
**
right now everything within a server:GET function is partially global, it can read global variables (by making a copy),
it can not read/copy local variables or modify globals
+
+also, (for now) all globals must be refrenced as _G,
+ie:
+function foo()
+ ...
+end
+
+_G.foo()
+_G.llib.crypto.md5("hewwo purr")
**
```lua
diff --git a/readme.md b/readme.md
index 0718d35..368753e 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,6 @@
-build with `clang -shared src/{*.c,*/*.c} -o llib.so -fPIC`
+build with `make`, output is `./llib.dll`
-or `clang -shared src/{*.c,*/*.c} -o llib.dll -L/mingw64/lib -llua -lws2_32 -fPIC` for my msys2 build
+windows works through msys2
[some docs](docs/)
@@ -24,10 +24,11 @@ todo:
* connection limit
-* more doxygen like docs, everywhere
+ * allow choosing what to copy over to the thread, or not to copy the global state at all
-* make parray_t hash based
+* more doxygen like docs, everywhere
+* thread-safe wrapper object
----
diff --git a/src/net.c b/src/net.c
index 103f164..1c53ad4 100644
--- a/src/net.c
+++ b/src/net.c
@@ -68,7 +68,6 @@ int64_t recv_full_buffer(int client_fd, char** _buffer, int* header_eof, int* st
//printf("&_\n");
for(;;){
n = recv(client_fd, buffer + len, BUFFER_SIZE, 0);
- printf("hi");
if(n < 0){
*_buffer = buffer;
printf("%s %i\n",strerror(errno),errno);