Mercurial
comparison seobeo/os/s_macos_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 |
comparison
equal
deleted
inserted
replaced
| 65:ecb6ee6a22c3 | 66:a0f0ad5e42eb |
|---|---|
| 32 continue; | 32 continue; |
| 33 } | 33 } |
| 34 | 34 |
| 35 for (int i = 0; i < ne; i++) | 35 for (int i = 0; i < ne; i++) |
| 36 { | 36 { |
| 37 Seobeo_PHandle h = evlist[i].udata; | 37 Seobeo_Handle *h = evlist[i].udata; |
| 38 if (h == args->srv) | 38 if (h == args->srv) |
| 39 { | 39 { |
| 40 // Accept new connections in a loop (for edge-triggered behavior) | 40 // Accept new connections in a loop (for edge-triggered behavior) |
| 41 while (1) { | 41 while (1) { |
| 42 Seobeo_PHandle cli = Seobeo_Stream_Handle_Server_Accept(args->srv); | 42 Seobeo_Handle *cli = Seobeo_Stream_Handle_Server_Accept(args->srv); |
| 43 if (!cli) break; | 43 if (!cli) break; |
| 44 | 44 |
| 45 struct kevent client_kev = { | 45 struct kevent client_kev = { |
| 46 .ident = cli->socket, | 46 .ident = cli->socket, |
| 47 .filter = EVFILT_READ, | 47 .filter = EVFILT_READ, |
| 68 close(kq); | 68 close(kq); |
| 69 return NULL; | 69 return NULL; |
| 70 } | 70 } |
| 71 | 71 |
| 72 void Seobeo_Web_Edge( | 72 void Seobeo_Web_Edge( |
| 73 Seobeo_PHandle p_server_handle, | 73 Seobeo_Handle *p_server_handle, |
| 74 int thread_count, | 74 int thread_count, |
| 75 Dowa_HashMap *p_html_cache) | 75 Dowa_HashMap *p_html_cache) |
| 76 { | 76 { |
| 77 pthread_attr_t attr; | 77 pthread_attr_t attr; |
| 78 pthread_attr_init(&attr); | 78 pthread_attr_init(&attr); |