{"id":19750396,"url":"https://github.com/anivie/tcp-test","last_synced_at":"2026-06-08T01:31:32.412Z","repository":{"id":215388705,"uuid":"738814718","full_name":"Anivie/tcp-test","owner":"Anivie","description":"An experiment on computer networks was conducted, which successfully completed the full three-way handshake and four-way handshake. It was implemented using unsafe Rust FFI and was also encapsulated in a simple manner","archived":false,"fork":false,"pushed_at":"2024-01-24T03:12:50.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T08:31:13.728Z","etag":null,"topics":["handshake","raw-sockets","rust","tcp","tcp-client-server","tcp-socket"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Anivie.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-01-04T05:32:12.000Z","updated_at":"2024-01-24T03:11:09.000Z","dependencies_parsed_at":"2024-01-17T13:53:02.101Z","dependency_job_id":"458a7984-3071-4a3c-bdde-c0b762c5506e","html_url":"https://github.com/Anivie/tcp-test","commit_stats":null,"previous_names":["anivie/tcp-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Anivie/tcp-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anivie%2Ftcp-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anivie%2Ftcp-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anivie%2Ftcp-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anivie%2Ftcp-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anivie","download_url":"https://codeload.github.com/Anivie/tcp-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anivie%2Ftcp-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34044919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"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":["handshake","raw-sockets","rust","tcp","tcp-client-server","tcp-socket"],"created_at":"2024-11-12T02:34:02.669Z","updated_at":"2026-06-08T01:31:32.397Z","avatar_url":"https://github.com/Anivie.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"### English in [here](https://github.com/Anivie/tcp-test/blob/master/README_EN.MD)  \n\n## 一次关于计算机网络的实验\n\n使用raw socket，我使用(unsafe) rust ffi来完成这一功能，过程非常曲折(  \n目前已经完成，可以正常握手并接收信息，连接的目标是tokio的echo demo\n\n本项目参考于[这个实验](https://github.com/MaxXor/raw-sockets-example/blob/master/rawsockets.c)，我使用rust手动实现并进行了简单的封装\n你可以在Linux中直接使用`cargo run`来运行这段程序  \n测试的连接目标为[TcpListener](https://docs.rs/tokio/1.35.1/tokio/net/struct.TcpListener.html)，我将其封装为独立的[服务器](https://github.com/Anivie/tcp-test-server)\n\n测试环境:\n - Ubuntu(WSL)\n - Rust Nightly","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanivie%2Ftcp-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanivie%2Ftcp-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanivie%2Ftcp-test/lists"}