{"id":25391494,"url":"https://github.com/estnafinema0/tcp-projects","last_synced_at":"2026-04-29T01:33:14.187Z","repository":{"id":272145903,"uuid":"915657324","full_name":"estnafinema0/tcp-projects","owner":"estnafinema0","description":"A collection of TCP client-server apps in C and C++, implementing various concurrency models using processes (fork) and threads (std::thread). Designed for object-oriented network programming.","archived":false,"fork":false,"pushed_at":"2025-01-29T17:16:57.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T00:32:42.235Z","etag":null,"topics":["c-language","c-plus-plus","client-server","concurrency","fork-process","multithreading","network-programming","object-oriented-programming","sockets","tcp-server"],"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/estnafinema0.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":"2025-01-12T13:12:35.000Z","updated_at":"2025-02-03T16:13:53.000Z","dependencies_parsed_at":"2025-01-12T14:28:24.110Z","dependency_job_id":"f1639961-ff7c-4254-ae9c-9e5edf220e69","html_url":"https://github.com/estnafinema0/tcp-projects","commit_stats":null,"previous_names":["estnafinema0/simple-clienet-server","estnafinema0/tcp-projects"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/estnafinema0/tcp-projects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estnafinema0%2Ftcp-projects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estnafinema0%2Ftcp-projects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estnafinema0%2Ftcp-projects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estnafinema0%2Ftcp-projects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/estnafinema0","download_url":"https://codeload.github.com/estnafinema0/tcp-projects/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estnafinema0%2Ftcp-projects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32407164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-language","c-plus-plus","client-server","concurrency","fork-process","multithreading","network-programming","object-oriented-programming","sockets","tcp-server"],"created_at":"2025-02-15T15:43:00.230Z","updated_at":"2026-04-29T01:33:14.157Z","avatar_url":"https://github.com/estnafinema0.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n## About This Repository\nWelcome to the **Network Server Collection**! 🎉  \nThis repository contains multiple variations of a TCP client-server application implemented in C and C++. Each project explores a different approach to handling multiple clients and concurrency or specific purpuses (fot ex. calclator), all while adhering to clean and reusable object-oriented design principles.\n\n### Variations\n\n1. **Simple-Client-Server** \n   A simpler, single-client implementation showcasing the basics network socket programming in c.\n\n2. **Client-Server-Calculator** \n   A simpler, single-client implementation showcasing the basics network socket programming in c, which is a calculator with basic operations.\n   \n3. **Client-Server-cpp-fork**  \n   A process-based version where the server spawns a new process (`fork`) for each client. While this approach supports multiple clients, shared resources (like the server terminal) are not protected in this version.\n\n4. **Client-Server-cpp-threads**  \n   A multithreaded version of the server where each client connection is handled by a separate thread. Synchronization is ensured using `std::mutex`, making it safe for shared resources like the server terminal.\n\n\n### Key Features Across All Projects\n- **Object-Oriented Design**: Classes like `Net::Socket` and `Net::InetSocketAddress` encapsulate low-level networking functionality.  \n- **TCP Communication**: Send and receive messages between a client and server.  \n- **Graceful Shutdown**: Use the keywords to close a session cleanly.  \n- **Port Reuse**: Avoid port conflicts with `SO_REUSEADDR`.  \n\n## Getting Started\nEach project has its own directory with a detailed README and `makefile`. Pick a version, compile it, and enjoy! 🚀  \n\n---\n\n## Git Tags\n- `v1.0` – Initial version with single-client support.\n- `v2.0` – Multithreaded version (`Client-Server-cpp-threads`).\n- `v2.1` – Fork-based version (`Client-Server-cpp-fork`).  \n- `latest` – Always points to the most recent stable update.\n\n---\n\nEnjoy experimenting with these projects, and feel free to contribute or suggest new ideas!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festnafinema0%2Ftcp-projects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Festnafinema0%2Ftcp-projects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festnafinema0%2Ftcp-projects/lists"}