]> git.seodisparate.com - c_simple_http/log
c_simple_http
7 months agoUse ${CC} and "CC ?= gcc" in Makefile
Stephen Seo [Thu, 5 Sep 2024 07:25:49 +0000 (16:25 +0900)]
Use ${CC} and "CC ?= gcc" in Makefile

7 months agoFix inconsistent http_template output size
Stephen Seo [Thu, 5 Sep 2024 07:18:28 +0000 (16:18 +0900)]
Fix inconsistent http_template output size

7 months agoAdd "output" size parameter to http_template fn
Stephen Seo [Thu, 5 Sep 2024 07:12:50 +0000 (16:12 +0900)]
Add "output" size parameter to http_template fn

7 months agoRemove temporary files created by unit test on end
Stephen Seo [Thu, 5 Sep 2024 05:07:42 +0000 (14:07 +0900)]
Remove temporary files created by unit test on end

7 months agoImpl. ".*_FILE" variables for templates
Stephen Seo [Thu, 5 Sep 2024 05:02:25 +0000 (14:02 +0900)]
Impl. ".*_FILE" variables for templates

If there exists a "{{{something_FILE}}}" (a variable ending with
"_FILE"), then the loaded variable will be treated as a filename and its
contents will be put in the html template.

7 months agoAdd action/workflow to run unit tests
Stephen Seo [Wed, 4 Sep 2024 08:51:07 +0000 (17:51 +0900)]
Add action/workflow to run unit tests

7 months agoconfig parsing: Handle when config has no endline
Stephen Seo [Wed, 4 Sep 2024 08:32:09 +0000 (17:32 +0900)]
config parsing: Handle when config has no endline

Put duplicate code into a macro/defines function.

7 months agoTest using "HTML_FILE" var, fixes
Stephen Seo [Wed, 4 Sep 2024 08:22:44 +0000 (17:22 +0900)]
Test using "HTML_FILE" var, fixes

7 months agoMinor formatting fix
Stephen Seo [Wed, 4 Sep 2024 06:33:47 +0000 (15:33 +0900)]
Minor formatting fix

7 months agoUpdate submodule third-party SimpleArchiver
Stephen Seo [Wed, 4 Sep 2024 06:32:14 +0000 (15:32 +0900)]
Update submodule third-party SimpleArchiver

7 months agoSet up tests for http_template, fixes
Stephen Seo [Wed, 4 Sep 2024 06:26:20 +0000 (15:26 +0900)]
Set up tests for http_template, fixes

7 months agoWIP untested Impl. html generation from templates
Stephen Seo [Tue, 3 Sep 2024 07:20:18 +0000 (16:20 +0900)]
WIP untested Impl. html generation from templates

7 months agoWIP some work on http req/response handling
Stephen Seo [Mon, 2 Sep 2024 04:51:10 +0000 (13:51 +0900)]
WIP some work on http req/response handling

7 months agoAdd more documentation about how src/config works
Stephen Seo [Mon, 2 Sep 2024 04:25:30 +0000 (13:25 +0900)]
Add more documentation about how src/config works

7 months agoUpdate third_party submodule SimpleArchiver
Stephen Seo [Sun, 1 Sep 2024 06:43:59 +0000 (15:43 +0900)]
Update third_party submodule SimpleArchiver

7 months agoUpdate third_party submodule SimpleArchiver
Stephen Seo [Sun, 1 Sep 2024 06:16:08 +0000 (15:16 +0900)]
Update third_party submodule SimpleArchiver

7 months agoUpdate Makefile: recompile if header has changed
Stephen Seo [Sun, 1 Sep 2024 03:36:04 +0000 (12:36 +0900)]
Update Makefile: recompile if header has changed

7 months agoUpdate documentation for config parsing
Stephen Seo [Sat, 31 Aug 2024 07:55:09 +0000 (16:55 +0900)]
Update documentation for config parsing

7 months agoMove config-related code from http.c to config.c
Stephen Seo [Sat, 31 Aug 2024 07:48:24 +0000 (16:48 +0900)]
Move config-related code from http.c to config.c

Also make config-related code more generic and improve unit tests of
config parsing.

7 months agoCleanup usage of third-party headers
Stephen Seo [Sat, 31 Aug 2024 05:43:53 +0000 (14:43 +0900)]
Cleanup usage of third-party headers

7 months agoWIP Impl. config file parsing for http templates
Stephen Seo [Fri, 30 Aug 2024 09:11:03 +0000 (18:11 +0900)]
WIP Impl. config file parsing for http templates

TODO:
    Still need to test "HTML_FILE".
    Response to HTTP request.

7 months agoWIP html template handling for http response
Stephen Seo [Fri, 30 Aug 2024 05:08:31 +0000 (14:08 +0900)]
WIP html template handling for http response

TODO:
    Test html template handling so that it works.
    Respond to http requests properly.

7 months agoAdd third_party SimpleArchiver (data structures)
Stephen Seo [Fri, 30 Aug 2024 02:58:11 +0000 (11:58 +0900)]
Add third_party SimpleArchiver (data structures)

Reusing the data structures implemented in the SimpleArchiver project.

7 months agoAdd hint to error when binding socket
Stephen Seo [Thu, 29 Aug 2024 07:48:43 +0000 (16:48 +0900)]
Add hint to error when binding socket

7 months agoPrint connecting peer's address
Stephen Seo [Thu, 29 Aug 2024 07:45:28 +0000 (16:45 +0900)]
Print connecting peer's address

7 months agoReturn fail on failing to bind socket
Stephen Seo [Thu, 29 Aug 2024 07:45:14 +0000 (16:45 +0900)]
Return fail on failing to bind socket

7 months agoMinor formatting fix
Stephen Seo [Thu, 29 Aug 2024 07:25:30 +0000 (16:25 +0900)]
Minor formatting fix

7 months agoAdd the ISC LICENSE
Stephen Seo [Thu, 29 Aug 2024 07:09:19 +0000 (16:09 +0900)]
Add the ISC LICENSE

7 months agoWIP Impl. receiving and printing received ASCII
Stephen Seo [Thu, 29 Aug 2024 07:00:49 +0000 (16:00 +0900)]
WIP Impl. receiving and printing received ASCII

7 months agoFormatting
Stephen Seo [Thu, 29 Aug 2024 06:40:43 +0000 (15:40 +0900)]
Formatting

7 months agoCleanup
Stephen Seo [Thu, 29 Aug 2024 06:38:44 +0000 (15:38 +0900)]
Cleanup

Separate out functions/structs/constants/globals to properly named
files.

7 months agoWIP work on http server
Stephen Seo [Thu, 29 Aug 2024 06:18:34 +0000 (15:18 +0900)]
WIP work on http server

TODO:
  Handling the TCP connection.

7 months agoSkeleton project initial code
Stephen Seo [Thu, 29 Aug 2024 05:19:46 +0000 (14:19 +0900)]
Skeleton project initial code