SYNOPSIS
package MyClass;
use Moose;
use MooseX::Types::PortNumber qw/PortNumber PortWellKnow PortRegistered PortPrivate/;
has port => ( isa => PortNumber, is => 'ro' );
has well => ( isa => PortWellKnow, is => 'ro');
has reg => ( isa => PortRegistered, is => 'ro');
has priv => ( isa => PortPrivate, is => 'ro');
DESCRIPTION
The port numbers are divided into three ranges: the Well Known Ports, the Registered Ports, and the Dynamic and/or Private Ports.The Well Known Ports are those from 0 through 1023.
DCCP Well Known ports SHOULD NOT be used without IANA registration. The registration procedure is defined in [RFC4340], Section 19.9.
The Registered Ports are those from 1024 through 49151
DCCP Registered ports SHOULD NOT be used without IANA registration. The registration procedure is defined in [RFC4340], Section 19.9.
The Dynamic and/or Private Ports are those from 49152 through 65535
COPYRIGHT
This program is Free software, you may redistribute it under the same terms as Perl itself.