Thiago Berlitz Rondon > MooseX-Types-PortNumber-0.02 > MooseX::Types::PortNumber

Download:
MooseX-Types-PortNumber-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

MooseX::Types::PortNumber - Port number type for moose classes by The Internet Assigned Numbers Authority (IANA).

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

SEE ALSO ^

http://www.iana.org/assignments/port-numbers

AUTHOR ^

Thiago Rondon <thiago@aware.com.br>

Aware TI (http://www.aware.com.br/)

COPYRIGHT ^

This program is Free software, you may redistribute it under the same terms as Perl itself.

syntax highlighting: