b5d538f2ce
Cleaned up argument parsing to match what was in the docs
2022-09-24 19:41:39 -04:00
55967c2d75
Start work on routing
2022-09-23 08:06:24 -04:00
3ba80eea64
Remove header.txt
2022-09-23 08:05:45 -04:00
8bd7e27de1
Fix bug in QueuePop()
2022-09-17 15:59:47 -04:00
21894489cb
Rename MatrixCreateError() to MatrixErrorCreate()
2022-09-16 11:49:48 -04:00
d7a1f7411d
Send M_UNKNOWN on all requests for now.
2022-09-16 11:49:21 -04:00
d0fb926f2a
Add error generation logic.
2022-09-16 11:27:34 -04:00
13763eb77b
Format code
2022-09-14 17:15:39 -04:00
184866532a
Spec: Implement CORS
2022-09-14 17:15:05 -04:00
1d0c48ce32
Add constants
2022-09-14 16:57:19 -04:00
685b7c016d
Start work on param parsing.
2022-09-08 21:09:47 -04:00
485941e8a8
Fix bug in JsonEncodeString() where characters get printed to stdout.
...
Thanks @costava:matrix.org for pointing this one out.
2022-09-06 20:53:30 -04:00
c607ba05a9
Implement URL encoding and decoding.
2022-09-06 20:48:27 -04:00
c0474982a6
Fix compile warnings and errors on Linux
2022-08-28 16:05:11 -04:00
7cc08e67fc
Begin Matrix-specific work.
2022-08-28 15:55:48 -04:00
47338fd001
Initialize the server response code
2022-08-28 15:48:58 -04:00
4cd24a6e97
Finally getting into Matrix territory
2022-08-28 15:45:24 -04:00
d7d960b77d
Parse HTTP requests and invoke the request handler.
2022-08-28 14:30:15 -04:00
d3e8886b69
Add some functions.
2022-08-26 21:02:53 -04:00
43c46fd45c
Fix compile and runtime errors
2022-08-26 20:15:27 -04:00
1dc4261f6f
Add Http.c
2022-08-26 11:11:15 -04:00
275d06c127
Begin prototyping the HttpServer API
2022-08-26 11:07:54 -04:00
d8a89c4750
Free server when we're done with it.
...
This frees up a lot of memory, and closes the server socket so that the
operating system doesn't have to do it, because the operating system may
take a while to actually close the socket.
2022-08-24 19:36:29 -04:00
9378a4d369
Implement basic thread pool with dummy 500 messages.
2022-08-24 19:31:28 -04:00
f950233dbc
Add UtilSleepMillis() function.
2022-08-24 19:30:20 -04:00
8657008e94
Format code.
2022-08-24 16:29:00 -04:00
de00c3cb37
Fix fdopen() file mode.
2022-08-24 16:28:50 -04:00
640e127ce5
Fix chroot() logic on non-OpenBSD platforms.
2022-08-24 16:10:34 -04:00
55a49e418f
Fix logic error relating to the initial call to QueuePush()
2022-08-24 14:41:42 -04:00
665da9d33e
Fix port binding error.
2022-08-24 14:37:32 -04:00
8801afaeb2
Properly initialize and destroy the mutex
2022-08-24 11:25:16 -04:00
be001fb17a
Make HttpServer utilize Queue.
2022-08-24 10:06:14 -04:00
ab4afe1587
Add basic Queue implementation.
2022-08-24 09:06:27 -04:00
315589cd1b
Accept #29
2022-08-21 12:35:16 -04:00
538412d1c2
Apply #26
2022-08-12 21:30:03 -04:00
30ae6586b2
Accept #28 , with modifications.
2022-08-12 19:32:06 -04:00
af03988db7
Poll the socket for data events.
2022-08-11 21:19:52 -04:00
d9c944871a
Abstract socket creation and binding behind the HttpServer API.
2022-08-11 20:13:10 -04:00
e94212b080
Bind to socket; HTTP server event thread; signal handling.
2022-08-11 19:40:13 -04:00
9cf2266ece
Make TelodendriaConfigParse() actually validate the listenPort.
...
I want to already have a valid port number by the time we need to bind
to it.
2022-08-11 11:50:35 -04:00
4304a28302
TelodendriaConfigParse() doesn't modify the LogConfig.
...
Also pledge() and unveil() as soon as possible, to avoid the log file
breaking out.
2022-08-10 21:13:05 -04:00
9ae05e84f2
Implement user validation.
2022-08-10 11:58:39 -04:00
2324d9982f
Format code.
2022-08-09 21:05:10 -04:00
d9e355edb9
Relocate free() in HashMap to a sensible location.
2022-08-09 21:02:57 -04:00
560624ba98
Fix memory leak in HashMap
2022-08-09 20:23:25 -04:00
76937a57a4
Check return value of fgets() in Json.c
2022-08-09 20:18:13 -04:00
a24d9b6c29
Fix memory error?
2022-08-09 20:10:45 -04:00
cdd7808642
Prototype the configuration file parser.
...
Right now there's a nasty memory bug I need to fix. Will have to run this
through valgrind.
2022-08-09 20:05:41 -04:00
9d496c29ac
Finish initial draft of JSON parser.
2022-08-09 13:19:14 -04:00
7630294cb7
Basic implementation of JsonTokenSeek()
2022-08-02 21:47:27 -04:00