{"id":18887472,"url":"https://github.com/pdrb/tcping","last_synced_at":"2025-07-19T10:33:03.564Z","repository":{"id":83850569,"uuid":"210703870","full_name":"pdrb/tcping","owner":"pdrb","description":"Ping hosts using tcp packets","archived":false,"fork":false,"pushed_at":"2019-09-27T03:00:24.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T11:44:05.983Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pdrb.png","metadata":{"files":{"readme":"README.rst","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":"2019-09-24T21:52:53.000Z","updated_at":"2022-11-10T10:09:54.000Z","dependencies_parsed_at":"2023-03-27T14:27:54.282Z","dependency_job_id":null,"html_url":"https://github.com/pdrb/tcping","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pdrb/tcping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Ftcping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Ftcping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Ftcping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Ftcping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdrb","download_url":"https://codeload.github.com/pdrb/tcping/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Ftcping/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265916139,"owners_count":23848692,"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":[],"created_at":"2024-11-08T07:37:58.412Z","updated_at":"2025-07-19T10:33:03.486Z","avatar_url":"https://github.com/pdrb.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"tcping\n=======\n\nPing hosts using tcp packets.\n\nA Python version is `also available \u003chttps://github.com/pdrb/synping\u003e`_.\n\nSimple example::\n\n    $ tcping example.org\n\n    Pinging example.org 4 times on port 80:\n\n    Reply from 93.184.216.34:80 time=1.72 ms\n    Reply from 93.184.216.34:80 time=1.81 ms\n    Reply from 93.184.216.34:80 time=1.75 ms\n    Reply from 93.184.216.34:80 time=1.77 ms\n\n    Statistics:\n    --------------------------\n\n    Host: example.org\n\n    Sent: 4 packets\n    Received: 4 packets\n    Lost: 0 packets (0.00%)\n\n    Min latency: 1.72 ms\n    Max latency: 1.81 ms\n    Average latency: 1.76 ms\n\n\nInstall\n=======\n\n**Using nimble**::\n\n    $ nimble install tcping\n\nOn Linux, a link to the resulting binary will be usually created at: \"~/.nimble/bin/tcping\".\n\nTo enable it \"system wide\" just copy the binary to \"/usr/local/bin\"::\n\n    $ cp ~/.nimble/bin/tcping /usr/local/bin\n\n**Using nim compiler**:\n\nSince only the standard library is used, just download the single source code\nfile and compile it::\n\n    $ wget https://raw.githubusercontent.com/pdrb/tcping/master/src/tcping.nim\n    $ nim c -d:release tcping.nim\n\n**Using compiler to create a size optimized binary**::\n\n    $ nim c -d:release --opt:size --passL:-s tcping.nim\n\nWe can reduce the binary size even more using `UPX \u003chttps://upx.github.io\u003e`_::\n\n    $ upx --best tcping\n\nAfter these steps, the resulting binary size is 35K on my Linux server.\n\n\nUsage\n=====\n\n::\n\n    Usage: tcping host [options]\n\n    ping hosts using tcp packets, e.g., 'tcping example.org'\n\n    Options:\n      -v, --version   show program's version number and exit\n      -h, --help      show this help message and exit\n      -t              ping host until stopped with 'control-c'\n      -n:count        number of requests to send (default: 4)\n      -p:port         port number to use (default: 80)\n      -w:timeout      timeout in milliseconds to wait for reply\n                      (default: 3000)\n\n\nExamples\n========\n\nPing host on port 80 (default)::\n\n    $ tcping host\n\nPing host on port 22::\n\n    $ tcping host -p:22\n\nPing host 10 times with 1 second timeout::\n\n    $ tcping host -n:10 -w:1000\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdrb%2Ftcping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdrb%2Ftcping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdrb%2Ftcping/lists"}