Mercurial
comparison seobeo/seobeo.h @ 16:fb2cff495a60
[Seobeo] Fixed the problem with edge server.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Fri, 03 Oct 2025 09:55:51 -0700 |
| parents | 114cad94008f |
| children | d97ec3ded2ae |
comparison
equal
deleted
inserted
replaced
| 15:2b9e75756825 | 16:fb2cff495a60 |
|---|---|
| 17 #include <arpa/inet.h> | 17 #include <arpa/inet.h> |
| 18 #include <sys/wait.h> | 18 #include <sys/wait.h> |
| 19 #include <signal.h> | 19 #include <signal.h> |
| 20 #include <fcntl.h> | 20 #include <fcntl.h> |
| 21 #include <pthread.h> | 21 #include <pthread.h> |
| 22 #include <stdatomic.h> | |
| 23 #include <stdbool.h> | |
| 22 | 24 |
| 23 #include "dowa/dowa.h" | 25 #include "dowa/dowa.h" |
| 24 | 26 |
| 25 #define INITIAL_BUFFER_CAPACITY 4096 | 27 #define INITIAL_BUFFER_CAPACITY 4096 |
| 26 | 28 |
| 50 uint32 write_buffer_len; // current size | 52 uint32 write_buffer_len; // current size |
| 51 | 53 |
| 52 void *file; | 54 void *file; |
| 53 void *text_copy; | 55 void *text_copy; |
| 54 char *file_name; | 56 char *file_name; |
| 57 | |
| 58 atomic_bool destroyed; | |
| 55 } Sebeo_Handle, *Seobeo_PHandle; | 59 } Sebeo_Handle, *Seobeo_PHandle; |
| 56 | 60 |
| 57 typedef struct { | 61 typedef struct { |
| 58 Seobeo_PHandle srv; | 62 Seobeo_PHandle srv; |
| 59 Dowa_PHashMap cache; | 63 Dowa_PHashMap cache; |