{"id":18151320,"url":"https://github.com/msantos/tcpexec-rs","last_synced_at":"2025-04-06T23:29:33.258Z","repository":{"id":136621621,"uuid":"446102681","full_name":"msantos/tcpexec-rs","owner":"msantos","description":"tcpexec: a minimal, UCSPI inetd","archived":false,"fork":false,"pushed_at":"2022-12-31T12:20:58.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-13T05:30:13.525Z","etag":null,"topics":["daemontools","inetd"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msantos.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-09T13:54:27.000Z","updated_at":"2023-02-17T15:53:08.000Z","dependencies_parsed_at":"2023-05-10T17:15:57.317Z","dependency_job_id":null,"html_url":"https://github.com/msantos/tcpexec-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Ftcpexec-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Ftcpexec-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Ftcpexec-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Ftcpexec-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msantos","download_url":"https://codeload.github.com/msantos/tcpexec-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247568936,"owners_count":20959754,"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":["daemontools","inetd"],"created_at":"2024-11-02T01:07:20.145Z","updated_at":"2025-04-06T23:29:33.244Z","avatar_url":"https://github.com/msantos.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\n\ntcpexec *IPADDR*:*PORT* *COMMAND* *...*\n\n# DESCRIPTION\n\n[tcpexec](https://github.com/msantos/tcpexec): a minimal,\n[UCSPI](https://jdebp.uk/FGA/UCSPI.html) inetd\n\n`tcpexec` attaches the standard input and output of a command to a\nTCP socket:\n\n* exec(3): data is not proxied via an intermediary process\n\n* `SO_REUSEPORT`: multiple processes concurrently listen and accept data\n  on the same port\n\n# EXAMPLES\n\n## echo server\n\n```\n$ tcpexec [::1]:9090 env\n\n$ tcpexec [::]:9090 env\n\n$ tcpexec 127.0.0.1:9090 env\n\n$ tcpexec 0.0.0.0:9090 env\n```\n\n## Supervised using daemontools\n\nAn echo server allowing 3 concurrent connections:\n\n    service/\n    ├── echo1\n    │   └── run\n    ├── echo2\n    │   └── run\n    └── echo3\n        └── run\n\n*  service/echo1/run\n\n```\n#!/bin/sh\n\nexec tcpexec [::1]:9090 cat\n```\n\n* service/echo2/run\n\n```\n#!/bin/sh\n\nexec tcpexec [::1]:9090 cat\n```\n\n* service/echo3/run\n\n```\n#!/bin/sh\n\nexec tcpexec [::1]:9090 cat\n```\n\nThen run:\n\n    svscan service\n\n# Build\n\n    cargo build\n\n# OPTIONS\n\nNone\n\n# ENVIRONMENT VARIABLES\n\nPROTO\n: protocol, always set to TCP\n\nTCPREMOTEIP\n: source IPv4 or IPv6 address\n\nTCPREMOTEPORT\n: source port\n\nTCPLOCALIP\n: destination IPv4 or IPv6 address\n\nTCPLOCALPORT\n: destination port\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Ftcpexec-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsantos%2Ftcpexec-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Ftcpexec-rs/lists"}