{"id":22974011,"url":"https://github.com/ya2ir/multithreaded-server-in-c","last_synced_at":"2025-04-02T07:24:50.583Z","repository":{"id":246710857,"uuid":"821902179","full_name":"YA2IR/multithreaded-server-in-c","owner":"YA2IR","description":"Simple Multithreaded Server in C","archived":false,"fork":false,"pushed_at":"2024-10-10T18:25:59.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T22:26:47.460Z","etag":null,"topics":["c","multithreading","pthreads","pthreads-api","server","socket-programming","sockets"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YA2IR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-29T19:08:40.000Z","updated_at":"2024-10-10T18:26:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"992068b0-40fa-4541-ba19-eb6e4226f286","html_url":"https://github.com/YA2IR/multithreaded-server-in-c","commit_stats":null,"previous_names":["ya2ir/multithreaded-server-in-c"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YA2IR%2Fmultithreaded-server-in-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YA2IR%2Fmultithreaded-server-in-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YA2IR%2Fmultithreaded-server-in-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YA2IR%2Fmultithreaded-server-in-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YA2IR","download_url":"https://codeload.github.com/YA2IR/multithreaded-server-in-c/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246771527,"owners_count":20831081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","multithreading","pthreads","pthreads-api","server","socket-programming","sockets"],"created_at":"2024-12-14T23:59:51.669Z","updated_at":"2025-04-02T07:24:50.553Z","avatar_url":"https://github.com/YA2IR.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multithreaded-server-in-c\n\nThis is a simple multithreaded web server written in C. It serves static HTML pages from the \"files\" directory.\n\n### Features:\n - Multithreaded, thread-safe. No leaks (as per Valgrind at least).\n - Has static routing and redirect functionalities.\n - Has a thread pool (reuses threads) instead of forking or creating threads on the fly.\n - Uses condition variables instead of busy waiting.\n\n### Limitations:\n - It does not fully implement HTTP 1.1, but it can communicate with browsers.\n - It should not be used in production, as I haven't checked it for security beyond the basic requirements\n\n\n### Getting it Running:\nCompile and run the server:\n\n```\ngcc queue.c hash_table.c server.c -o server\n./server\n```\nThen write in your browser:\n```\nlocalhost:4444\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fya2ir%2Fmultithreaded-server-in-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fya2ir%2Fmultithreaded-server-in-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fya2ir%2Fmultithreaded-server-in-c/lists"}