Mercurial
comparison seobeo/seobeo_internal.h @ 65:ecb6ee6a22c3
[Misc] I will no longer drink cool aids of capital P.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Wed, 24 Dec 2025 06:22:59 -0800 |
| parents | a30944e5719e |
| children | a0f0ad5e42eb |
comparison
equal
deleted
inserted
replaced
| 64:a30944e5719e | 65:ecb6ee6a22c3 |
|---|---|
| 42 atomic_bool destroyed; | 42 atomic_bool destroyed; |
| 43 } Sebeo_Handle, *Seobeo_PHandle; | 43 } Sebeo_Handle, *Seobeo_PHandle; |
| 44 | 44 |
| 45 typedef struct { | 45 typedef struct { |
| 46 Seobeo_PHandle srv; | 46 Seobeo_PHandle srv; |
| 47 Dowa_PHashMap cache; | 47 Dowa_HashMap *cache; |
| 48 } WorkerArgs; | 48 } WorkerArgs; |
| 49 | 49 |
| 50 typedef enum { | 50 typedef enum { |
| 51 SEOBEO_MODE_FORK, | 51 SEOBEO_MODE_FORK, |
| 52 SEOBEO_MODE_EDGE, | 52 SEOBEO_MODE_EDGE, |
| 54 | 54 |
| 55 | 55 |
| 56 | 56 |
| 57 | 57 |
| 58 // --- Parse Header into Dowa Map ---// | 58 // --- Parse Header into Dowa Map ---// |
| 59 extern int Seobeo_Web_Header_Parse(Seobeo_PHandle p_handle, Dowa_PHashMap map); | 59 extern int Seobeo_Web_Header_Parse(Seobeo_PHandle p_handle, Dowa_HashMap *map); |
| 60 | 60 |
| 61 // --- Handle Request --- // | 61 // --- Handle Request --- // |
| 62 extern void Seobeo_Web_HandleClientRequest(Seobeo_PHandle cli, Dowa_PHashMap p_html_cache); | 62 extern void Seobeo_Web_HandleClientRequest(Seobeo_PHandle cli, Dowa_HashMap *p_html_cache); |
| 63 | 63 |
| 64 // --- SSL --- // | 64 // --- SSL --- // |
| 65 extern void Seobeo_Web_SSL_Init(); | 65 extern void Seobeo_Web_SSL_Init(); |
| 66 extern void Seobeo_Web_SSL_Cleanup(); // Not used | 66 extern void Seobeo_Web_SSL_Cleanup(); // Not used |
| 67 | 67 |
| 68 // --- Serving using Edge --- // | 68 // --- Serving using Edge --- // |
| 69 extern void *Seobeo_Web_Edge_Worker(void *vargs); | 69 extern void *Seobeo_Web_Edge_Worker(void *vargs); |
| 70 extern void Seobeo_Web_Edge(Seobeo_PHandle p_server_handle, int thread_count, Dowa_PHashMap p_html_cache); | 70 extern void Seobeo_Web_Edge(Seobeo_PHandle p_server_handle, int thread_count, Dowa_HashMap *p_html_cache); |
| 71 extern void Seobeo_Web_Edge_2(Seobeo_PHandle p_server_handle, Dowa_PHashMap p_html_cache); | 71 extern void Seobeo_Web_Edge_2(Seobeo_PHandle p_server_handle, Dowa_HashMap *p_html_cache); |
| 72 | 72 |
| 73 #endif | 73 #endif |
| 74 | 74 |