diff seobeo/os/s_linux_edge.c @ 66:a0f0ad5e42eb

[Misc] taking out capital P stuff.
author June Park <parkjune1995@gmail.com>
date Wed, 24 Dec 2025 06:34:19 -0800
parents ecb6ee6a22c3
children 75de5903355c
line wrap: on
line diff
--- a/seobeo/os/s_linux_edge.c	Wed Dec 24 06:22:59 2025 -0800
+++ b/seobeo/os/s_linux_edge.c	Wed Dec 24 06:34:19 2025 -0800
@@ -35,12 +35,12 @@
     }
 
     for (int i = 0; i < n; i++) {
-      Seobeo_PHandle phandle = events[i].data.ptr;
+      Seobeo_Handle *phandle = events[i].data.ptr;
 
       if (phandle == args->srv) {
         // Accept all pending connections (edge-triggered mode)
         while (1) {
-          Seobeo_PHandle p_cli_handle = Seobeo_Stream_Handle_Server_Accept(args->srv);
+          Seobeo_Handle *p_cli_handle = Seobeo_Stream_Handle_Server_Accept(args->srv);
           if (!p_cli_handle) break;
 
           struct epoll_event client_ev = {
@@ -68,7 +68,7 @@
 }
 
 void Seobeo_Web_Edge(
-    Seobeo_PHandle p_server_handle,
+    Seobeo_Handle *p_server_handle,
     int thread_count,
     Dowa_HashMap *p_html_cache)
 {
@@ -93,7 +93,7 @@
 }
 
 
-void Seobeo_Web_Edge_2(Seobeo_PHandle p_handle_server, Dowa_HashMap *cache)
+void Seobeo_Web_Edge_2(Seobeo_Handle *p_handle_server, Dowa_HashMap *cache)
 {
   const int MAX_EVENTS = 1024;
   struct epoll_event events[MAX_EVENTS];
@@ -138,7 +138,7 @@
       {
         while (1)
         {
-          Seobeo_PHandle p_handle_client = Seobeo_Stream_Handle_Server_Accept(p_handle_server);
+          Seobeo_Handle *p_handle_client = Seobeo_Stream_Handle_Server_Accept(p_handle_server);
           if (!p_handle_client) break;
 
           struct epoll_event client_ev = {
@@ -161,7 +161,7 @@
       }
 
       snprintf(keybuf, sizeof(keybuf), "%d", fd);
-      Seobeo_PHandle p_handle_client = Dowa_HashMap_Get(handles, keybuf);
+      Seobeo_Handle *p_handle_client = Dowa_HashMap_Get(handles, keybuf);
       if (!p_handle_client)
       {
         // might happen if client closed between event and lookup