{"id":17861229,"url":"https://github.com/jonathanstowe/checksocket","last_synced_at":"2025-04-02T20:47:34.132Z","repository":{"id":34299785,"uuid":"38205113","full_name":"jonathanstowe/CheckSocket","owner":"jonathanstowe","description":"very simple Raku function to test if a TCP socket is listening on a given address","archived":false,"fork":false,"pushed_at":"2022-08-08T12:16:23.000Z","size":26,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-04-22T17:06:59.534Z","etag":null,"topics":["raku","tcp-socket","test"],"latest_commit_sha":null,"homepage":"","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonathanstowe.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-28T16:07:19.000Z","updated_at":"2022-08-07T08:47:13.000Z","dependencies_parsed_at":"2022-09-03T01:06:40.932Z","dependency_job_id":null,"html_url":"https://github.com/jonathanstowe/CheckSocket","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FCheckSocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FCheckSocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FCheckSocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FCheckSocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathanstowe","download_url":"https://codeload.github.com/jonathanstowe/CheckSocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246892796,"owners_count":20850846,"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":["raku","tcp-socket","test"],"created_at":"2024-10-28T08:43:27.007Z","updated_at":"2025-04-02T20:47:33.877Z","avatar_url":"https://github.com/jonathanstowe.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CheckSocket\n\n![Build Status](https://github.com/jonathanstowe/CheckSocket/workflows/CI/badge.svg)\n\nA very simple Raku function to test if a TCP socket is listening on a given address or\na UNIX domain socket on the specified path\n\n## Description\n\nThis module provides a very simple mechanism to determine whether\nsomething is listening on a TCP socket at the given port and address,\nor UNIX domain socket at a specified path.  This is primarly for the\nconvenience of testing where there may be a dependency on an external\nnetwork service.  For example:\n\n     use Test;\n     use CheckSocket;\n\n     if not check-socket(80, \"localhost\") {\n\t      skip-all \"no web server\";\n         exit;\n     }\n\n\t# or\n\n\tuse Test;\n\tuse CheckSocket;\n\n\t# Start some socket server concurrently\n\tif wait-socket(80, \"localhost\") {\n\t\t# do some tests\n\t}\n\telse {\n\t\tskip-all \"server didn't start in time\";\n\t}\n\n## Installation\n\nYou can install directly with *zef*:\n\n    # From the source directory\n   \n    zef install .\n\n    # Remote installation\n\n    zef install CheckSocket\n\n## Support\n\nSuggestions/patches are welcomed via github at\n\nhttps://github.com/jonathanstowe/CheckSocket/issues\n\n## Licence\n\nPlease see the LICENCE file in the distribution\n\n© Jonathan Stowe 2015 - 2021\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Fchecksocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanstowe%2Fchecksocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Fchecksocket/lists"}