Skip to content
Map ports to services (and back)
Raku
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Services
resources/data
t
utils
.gitignore
.travis.yml
LICENSE
META6.json
README.md

README.md

Services::PortMapping

Map ports to services (and back) for internet services. Using this CSV file included in the distribution, creates and exports 4 hashes that map ports to services and back, for UDP and TCP.

  • %TCPServices maps ports to TCP services
  • %TCPPorts maps service names to ports;

And idem with UDP instead of TCP.

Example

say %TCPServices<80>; # should return www-http
say %UDPPorts<domain>;   # should return 53

You can also use .keys to print the existing ports or services.

License

GPL

You can’t perform that action at this time.