{"id":18402696,"url":"https://github.com/jasei/port-selector","last_synced_at":"2025-04-12T18:29:28.662Z","repository":{"id":56835191,"uuid":"70133374","full_name":"JaSei/Port-Selector","owner":"JaSei","description":null,"archived":false,"fork":false,"pushed_at":"2016-11-12T08:22:02.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T03:44:37.580Z","etag":null,"topics":["module","perl","perl5"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Port::Selector","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JaSei.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-06T07:44:38.000Z","updated_at":"2017-06-16T08:26:57.000Z","dependencies_parsed_at":"2022-09-09T18:00:42.579Z","dependency_job_id":null,"html_url":"https://github.com/JaSei/Port-Selector","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaSei%2FPort-Selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaSei%2FPort-Selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaSei%2FPort-Selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaSei%2FPort-Selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaSei","download_url":"https://codeload.github.com/JaSei/Port-Selector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248612757,"owners_count":21133368,"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":["module","perl","perl5"],"created_at":"2024-11-06T02:43:12.299Z","updated_at":"2025-04-12T18:29:28.641Z","avatar_url":"https://github.com/JaSei.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/JaSei/Port-Selector.svg?branch=master)](https://travis-ci.org/JaSei/Port-Selector)\n# NAME\n\nPort::Selector - pick some unused port\n\n# SYNOPSIS\n\n    my $port_sel = Port::Selector-\u003enew();\n    $port_sel-\u003eport();\n\n# DESCRIPTION\n\nThis module is used to find a free port,\nby default in the range 49152 to 65535,\nbut you can change the range of ports that will be checked.\n\n# METHODS\n\n## new(%attributes)\n\n### %attributes\n\n#### min\n\nlowest numbered port to consider\n\ndefault _49152_\n\nThe range 49152-65535 is commonly used by applications that utilize a\ndynamic/random/configurable port.\n\n#### max\n\nhighest numbered port to consider\n\ndefault _65535_\n\n#### proto\n\nsocket protocol\n\ndefault _tcp_\n\n#### addr\n\nlocal address\n\ndefault _localhost_\n\n## port()\n\nTries to find an unused port from `min`-`max` ports range,\nchecking each port in turn until it finds an available one.\n\n# SEE ALSO\n\n[Net::EmptyPort](https://metacpan.org/pod/Net::EmptyPort) (part of the `Test-TCP` distribution,\nprovides a function `empty_port`\nwhich does the same thing as the `port` method in this module.\n\n# LICENSE\n\nCopyright (C) Avast Software.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# AUTHOR\n\nJan Seidl \u003cseidl@avast.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasei%2Fport-selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasei%2Fport-selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasei%2Fport-selector/lists"}