Mercurial
view cutelient/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 | 875bb6e10db7 |
| children |
line wrap: on
line source
#include <err.h> #include "seobeo/seobeo.h" int main(int argc, char **argv) { if (argc < 3) { err(EXIT_FAILURE, "Usage: %s URL, PORT, PATH\n", argv[0]); } Seobeo_Web_Client_Get(argv[1], argv[2], argv[3]); return 0; }