Mercurial
view playground/main.c @ 33:c0f6c8c7829f
[Seobeo] Linux epoll. Set the client socket to be nonblocking so that it doesn't stop loading when two different threads handle different client calls. I might have problem with socket not being cleaned up properly so need to check that.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 10 Oct 2025 06:59:32 -0700 |
| parents | 342726584be2 |
| children | 75de5903355c |
line wrap: on
line source
#include <stdio.h> struct Node { char *value; struct Node *left; struct Node *right; }; void *recurr(struct Node *root, int depth) { if (depth) return; root.left = } int main() { struct Node root = {} struct Node **queue = {} }