{"id":24991678,"url":"https://github.com/archisman-mridha/tcp-server","last_synced_at":"2026-04-15T22:31:14.425Z","repository":{"id":264342225,"uuid":"893099235","full_name":"Archisman-Mridha/tcp-server","owner":"Archisman-Mridha","description":"Building a TCP server from scratch in each of : Rust, Zig and C","archived":false,"fork":false,"pushed_at":"2025-04-08T18:05:20.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T19:24:42.982Z","etag":null,"topics":["c","rust","tcp","tcp-server","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/Archisman-Mridha.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-11-23T14:31:28.000Z","updated_at":"2025-04-08T18:05:23.000Z","dependencies_parsed_at":"2025-04-08T19:24:33.304Z","dependency_job_id":"5a684f1d-fa43-4956-8325-a665f898161f","html_url":"https://github.com/Archisman-Mridha/tcp-server","commit_stats":null,"previous_names":["archisman-mridha/tcp-server-rust","archisman-mridha/tcp-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Archisman-Mridha/tcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archisman-Mridha%2Ftcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archisman-Mridha%2Ftcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archisman-Mridha%2Ftcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archisman-Mridha%2Ftcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Archisman-Mridha","download_url":"https://codeload.github.com/Archisman-Mridha/tcp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archisman-Mridha%2Ftcp-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269105188,"owners_count":24360704,"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","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","rust","tcp","tcp-server","zig"],"created_at":"2025-02-04T13:51:13.974Z","updated_at":"2026-04-15T22:31:09.395Z","avatar_url":"https://github.com/Archisman-Mridha.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Implementing a TCP server from scratch\n\n## Knowledge nuggets\n\n- The UT8 or ASCII encoding of 4,294,967,295 takes 10 bytes - 1 byte per digit. The binary encoding takes 4 bytes; quite the space saving! Conversely, the UTF8 or ASCII encoding of \"63\" uses just 2 bytes, versus the 4 byte if we're using a **4-byte fixed length**.\n\n  \u003e There are variable-length binary encoding scheme, such as the `varint` used by Google's **Protocol Buffer**.\n\n- Some protocols use **both delimiters and some type of prefix**. HTTP, for example, uses delimiters for its headers, but the body's length is typically defined by the text-encoded Content-Length header. Redis also stands out as having a mix of both delimiters (for ease of human-readability) and text-encoded length prefix.\n\n- Elixir and Erlang have strong support for **vectored I/O**.\n\n## REFERENCEs\n\n- [TUN/TAP](https://en.wikipedia.org/wiki/TUN/TAP)\n- [TRANSMISSION CONTROL PROTOCOL](https://datatracker.ietf.org/doc/html/rfc9293)\n- [INTERNET PROTOCOL](https://datatracker.ietf.org/doc/html/rfc791)\n- [Datagrams](https://en.wikipedia.org/wiki/Datagram)\n- [SYN flood attack](https://www.cloudflare.com/en-in/learning/ddos/syn-flood-ddos-attack/)\n\n- [What is the difference between a slice and an array in Rust?](https://stackoverflow.com/a/30794371/20891099)\n\n- [TCP Server in Zig - Part 1 - Single Threaded](https://www.openmymind.net/TCP-Server-In-Zig-Part-1-Single-Threaded/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchisman-mridha%2Ftcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchisman-mridha%2Ftcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchisman-mridha%2Ftcp-server/lists"}