# HG changeset patch # User MrJuneJune # Date 1760220427 25200 # Node ID 6c322f9c2cb9da92b924d9346c6bcd3be26e20cc # Parent c0f6c8c7829f64f01127419ee11bb59a28079ea4 [Birthday] I didn't have nay time to buy birhtday present so w/e/ diff -r c0f6c8c7829f -r 6c322f9c2cb9 birthday_page/BUILD --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/birthday_page/BUILD Sat Oct 11 15:07:07 2025 -0700 @@ -0,0 +1,15 @@ +load("@rules_cc//cc:cc_binary.bzl", "cc_binary") +load("@rules_cc//cc:cc_library.bzl", "cc_library") +load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle") + +filegroup( + name = "pages_files", + srcs = glob(["pages/**"]), +) + +cc_binary( + name = "server", + srcs = ["main.c"], + deps = ["//seobeo:seobeo"], + data = [":pages_files"], +) diff -r c0f6c8c7829f -r 6c322f9c2cb9 birthday_page/main.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/birthday_page/main.c Sat Oct 11 15:07:07 2025 -0700 @@ -0,0 +1,12 @@ +/** + * Happy birthday + * + */ + +#include "seobeo/seobeo.h" + + +int main(void) +{ + Seobeo_Web_Server_Start("birthday_page/pages", "8888", SEOBEO_MODE_FORK, 2); +} diff -r c0f6c8c7829f -r 6c322f9c2cb9 birthday_page/pages/background.avif Binary file birthday_page/pages/background.avif has changed diff -r c0f6c8c7829f -r 6c322f9c2cb9 birthday_page/pages/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/birthday_page/pages/index.html Sat Oct 11 15:07:07 2025 -0700 @@ -0,0 +1,361 @@ + + + + + + + + + + Dino Birthday Game + + + +
+
+
+
+
Distance: 0m
+
+ +
+ + + + diff -r c0f6c8c7829f -r 6c322f9c2cb9 birthday_page/pages/punpun.png Binary file birthday_page/pages/punpun.png has changed diff -r c0f6c8c7829f -r 6c322f9c2cb9 birthday_page/pages/random_1.jpeg Binary file birthday_page/pages/random_1.jpeg has changed diff -r c0f6c8c7829f -r 6c322f9c2cb9 birthday_page/pages/random_2.png Binary file birthday_page/pages/random_2.png has changed diff -r c0f6c8c7829f -r 6c322f9c2cb9 birthday_page/pages/random_3.jpeg Binary file birthday_page/pages/random_3.jpeg has changed diff -r c0f6c8c7829f -r 6c322f9c2cb9 seobeo/s_web.c --- a/seobeo/s_web.c Fri Oct 10 06:59:32 2025 -0700 +++ b/seobeo/s_web.c Sat Oct 11 15:07:07 2025 -0700 @@ -86,10 +86,8 @@ // Extract method (GET, POST, etc.) const char *method = (const char*)Dowa_HashMap_Get(p_req_map, "HTTP_Method"); - printf("Method: %s Pointer %p\n\n", method, p_req_map); if (!method) { - printf("?? wtf\n\n"); Seobeo_Web_Header_Generate(p_response_header, HTTP_BAD_REQUEST, "text/plain", 0); @@ -251,12 +249,8 @@ goto clean_up; clean_up: - printf("CLEAN UP\n\n\n"); if (p_cli_handle) - { - printf("CLEAN UP called on client handle\n\n\n"); Seobeo_Handle_Destroy(p_cli_handle); - } if (p_response_arena) Dowa_Arena_Destroy(p_response_arena); } @@ -487,7 +481,8 @@ sa.sa_flags = SA_RESTART; sigaction(SIGCHLD, &sa, NULL); - while (1) { + while (1) + { Seobeo_PHandle cli = Seobeo_Stream_Handle_Server_Accept(p_server_handle); if (!cli) continue; @@ -498,7 +493,6 @@ p_html_cache); _exit(0); } - Seobeo_Handle_Destroy(cli); } }