{"id":20975965,"url":"https://github.com/banyc/mptcp","last_synced_at":"2026-03-05T09:02:47.970Z","repository":{"id":202749397,"uuid":"708055260","full_name":"Banyc/mptcp","owner":"Banyc","description":"Multipath TCP. I/O copy friendly. Split one user stream into multiple TCP streams and assemble them together into an intact stream. Graceful shutdown to prevent TCP RST.","archived":false,"fork":false,"pushed_at":"2024-09-06T06:40:35.000Z","size":117,"stargazers_count":9,"open_issues_count":1,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-04T10:59:01.957Z","etag":null,"topics":["async","io","it-works","mptcp","network-programming","networking","tokio","transport"],"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/Banyc.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":"2023-10-21T11:44:26.000Z","updated_at":"2025-06-21T17:16:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"7699d9b9-1a0c-4791-977a-68436f24d245","html_url":"https://github.com/Banyc/mptcp","commit_stats":null,"previous_names":["banyc/mptcp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Banyc/mptcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2Fmptcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2Fmptcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2Fmptcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2Fmptcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Banyc","download_url":"https://codeload.github.com/Banyc/mptcp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2Fmptcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30117481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["async","io","it-works","mptcp","network-programming","networking","tokio","transport"],"created_at":"2024-11-19T04:48:14.788Z","updated_at":"2026-03-05T09:02:47.916Z","avatar_url":"https://github.com/Banyc.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi-path TCP\n\n![Session](img/session.drawio.png)\n\n## How to transfer a file\n\n1. Install Rust: \u003chttps://www.rust-lang.org/tools/install\u003e\n1. `git clone \u003cREPO_URL\u003e.git`\n1. On the server side, run `cargo run -r -p cli --bin server -- \u003cSTREAMS\u003e \u003cLISTEN\u003e \u003cCOMMAND\u003e`\n   - `\u003cLISTEN\u003e`: The listen address\n     - e.g., `tcp://127.0.0.1:12345`\n     - e.g., `mptcp.4://127.0.0.1:12345`\n       - `.4`: The maximum number of TCP streams to accept\n   - `\u003cCOMMAND\u003e`: either:\n     - `push \u003cSOURCE_FILE\u003e`: To push a file from `\u003cSOURCE_FILE\u003e` to the peer\n     - `pull \u003cOUTPUT_FILE\u003e`: To pull a file from the peer to `\u003cOUTPUT_FILE\u003e`\n1. On the client side, run `cargo run -r -p cli --bin client -- \u003cSTREAMS\u003e \u003cSERVER\u003e \u003cCOMMAND\u003e`\n   - `\u003cSERVER\u003e`: The server address\n     - e.g., `tcp://127.0.0.1:12345`\n     - e.g., `mptcp.4://127.0.0.1:12345`\n       - `.4`: The number of TCP streams to connect\n\n## How to use MPTCP in code\n\nServer:\n\n```rust\nlet mut listener = MptcpListener::bind(addr, max_session_streams).await.unwrap();\nlet stream = listener.accept().await.unwrap();\nlet (mut read, mut write) = stream.into_split();\nlet mut buf = [0; 13];\nread.read_exact(\u0026mut buf).await.unwrap();\nwrite.write_all(b\"Hello client!\").await.unwrap();\n```\n\nClient:\n\n```rust\nlet stream = MptcpStream::connect(addr, num_streams).await.unwrap();\nlet (mut read, mut write) = stream.into_split();\nwrite.write_all(b\"Hello server!\").await.unwrap();\nlet mut buf = [0; 13];\nread.read_exact(\u0026mut buf).await.unwrap();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanyc%2Fmptcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbanyc%2Fmptcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanyc%2Fmptcp/lists"}