{"id":15373115,"url":"https://github.com/vi/udpexchange","last_synced_at":"2025-07-22T10:06:40.542Z","repository":{"id":198034880,"uuid":"700089329","full_name":"vi/udpexchange","owner":"vi","description":"Small tool to resend received UDP datagrams back to known unexpired addresses; also small executable demo.","archived":false,"fork":false,"pushed_at":"2023-10-18T18:56:54.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-29T09:16:16.720Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vi.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-03T23:26:18.000Z","updated_at":"2025-02-11T13:26:29.000Z","dependencies_parsed_at":"2024-10-01T14:04:27.290Z","dependency_job_id":null,"html_url":"https://github.com/vi/udpexchange","commit_stats":null,"previous_names":["vi/udpexchange"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vi/udpexchange","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fudpexchange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fudpexchange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fudpexchange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fudpexchange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vi","download_url":"https://codeload.github.com/vi/udpexchange/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fudpexchange/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266472956,"owners_count":23934472,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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-10-01T13:54:19.052Z","updated_at":"2025-07-22T10:06:40.507Z","avatar_url":"https://github.com/vi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# udpexchange\n\nThis program follows the following algorithm:\n\n1. Listen UDP socket at specified address\n2. For each incoming UDP datagram, remember source address in LRU cache\n3. Return empty datagrams back to sender (pings/keepalives)\n4. Forward non-empty datagrams to each known unexpired address (except of sender).\n\nOptionally, it can remember some recent messages and send them to newly seen clients.\n\n## Security\n\nThis service may allow DDoS amplification, so should not be run publicly.\n\n## Small executable size\n\nThis project is partly an experiment to create small executables using Rust while having (partial?) access to libstd and using reasonable command-line arguments parser.\n\n    cargo build --release -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort --target=x86_64-unknown-linux-musl --features=mini\n\nshould produce a working 51-kilobyte executable.\n\nNote that hacks activated by `--features=mini` may be unsound and less portable. Even smaller size is attainable by also using [eyra](https://docs.rs/crate/eyra/latest).\n\n## Installation\n\nDownload a pre-built executable from [Github releases](https://github.com/vi/udpexchange/releases) or install from source code with `cargo install --path .`  or `cargo install udpexchange`.\n\n## CLI options\n\n\u003cdetails\u003e\u003csummary\u003e udpexchange --help output\u003c/summary\u003e\n\n```\nUsage: udpexchange \u003clisten_addr\u003e [-t \u003ctimeout\u003e] [-r]\n\nSimple UDP service which replies to all other known clients\n\nPositional Arguments:\n  listen_addr       socket address to bind UDP to\n\nOptions:\n  -t, --timeout     timeout, in seconds, to expire clients.\n  -r, --replay      send recent accumulated messages to newly seen clients\n  --help            display usage information\n```\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fudpexchange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvi%2Fudpexchange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fudpexchange/lists"}