{"id":22941817,"url":"https://github.com/zacksleo/rust-tcp-server","last_synced_at":"2025-10-28T00:06:35.937Z","repository":{"id":48556629,"uuid":"387837393","full_name":"zacksleo/rust-tcp-server","owner":"zacksleo","description":"rust tcp server","archived":false,"fork":false,"pushed_at":"2021-07-24T02:23:33.000Z","size":238,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T21:17:19.220Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zacksleo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-20T15:35:05.000Z","updated_at":"2021-07-20T15:51:58.000Z","dependencies_parsed_at":"2022-08-31T20:00:47.304Z","dependency_job_id":null,"html_url":"https://github.com/zacksleo/rust-tcp-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zacksleo/rust-tcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Frust-tcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Frust-tcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Frust-tcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Frust-tcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zacksleo","download_url":"https://codeload.github.com/zacksleo/rust-tcp-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Frust-tcp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273293852,"owners_count":25079892,"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-09-02T02:00:09.530Z","response_time":77,"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":[],"created_at":"2024-12-14T13:45:06.959Z","updated_at":"2025-10-28T00:06:30.917Z","avatar_url":"https://github.com/zacksleo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-tcp-server\n\n\n## 运行\n\n```bash\ncargo run\n```\n\n## 测试\n\n```bash\n\u003e telnet 127.0.0.1 80\nTrying 127.0.0.1...\nConnected to localhost.\nEscape character is '^]'.\nworld\nworld\nConnection closed by foreign host.\n```\n\n## 截图\n\n![截图](.github/screenshort/tcp-server.png)\n\n## 参考资料\n\n- [Tcp Listener](https://doc.rust-lang.org/std/net/struct.TcpListener.html)\n- [Tcp Stream](https://doc.rust-lang.org/std/net/struct.TcpStream.html)\n- [单线程webserver](https://kaisery.github.io/trpl-zh-cn/ch20-01-single-threaded.html)\n- [Rust Cookbook](https://rust-lang-nursery.github.io/rust-cookbook/net/server.html)\n- [A simple TCP clientand server application](https://riptutorial.com/rust/example/4404/a-simple-tcp-client-and-server-application--echo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Frust-tcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzacksleo%2Frust-tcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Frust-tcp-server/lists"}