{"id":16797064,"url":"https://github.com/jdockerty/gn","last_synced_at":"2025-03-17T03:44:33.920Z","repository":{"id":255080341,"uuid":"848482951","full_name":"jdockerty/gn","owner":"jdockerty","description":"TCP/UDP tool for grugs","archived":false,"fork":false,"pushed_at":"2024-09-07T14:05:15.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T13:29:18.294Z","etag":null,"topics":["rust","rust-tools","tcp-client","tcp-server","udp-client","udp-server"],"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/jdockerty.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-08-27T20:59:50.000Z","updated_at":"2024-09-07T14:05:18.000Z","dependencies_parsed_at":"2024-10-13T09:21:08.112Z","dependency_job_id":"12ae436b-d647-4488-a224-3326c98770f1","html_url":"https://github.com/jdockerty/gn","commit_stats":null,"previous_names":["jdockerty/gn"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fgn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fgn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fgn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fgn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdockerty","download_url":"https://codeload.github.com/jdockerty/gn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243971157,"owners_count":20376784,"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","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":["rust","rust-tools","tcp-client","tcp-server","udp-client","udp-server"],"created_at":"2024-10-13T09:21:02.427Z","updated_at":"2025-03-17T03:44:33.885Z","avatar_url":"https://github.com/jdockerty.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gn\n\nA TCP/UDP tool like `nc`, but way dumber.\n\n## Install\n\nInstall via `cargo`:\n\n```sh\ncargo install --git https://github.com/jdockerty/gn\n```\n\n## Usage\n\nWrite data using the `write` subcommand. This exposes numerous ways to interact\nwith the remote server, of which a new stream is used per write.\n\nFor example:\n\n```sh\n# Send 100 requests over TCP which contains \"hello-world\"\ngn write --host 127.0.0.1:5000 --count 100 \"hello-world\"\n\n# Write for a duration of 3s, from stdin, with \"input\"\necho \"input\" | gn write --host 127.0.0.1:5000 --duration 3s\n\n# Write 5 concurrent requests for 1s over UDP\ngn write --host 127.0.0.1:5000 --protocol udp --concurrency 5 \"some_data\"\n```\n\nThis also bundles a server implementation using the `serve` subcommand, the\nspecified protocol to listen for incoming connections is determined via the\n`--protocol` flag.\n\n```\n# Default to TCP\ngn serve\n\n# Listen for incoming UDP\ngn serve --protocol udp\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdockerty%2Fgn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdockerty%2Fgn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdockerty%2Fgn/lists"}