logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Authors

       •   Thiago Rondon <thiago@aware.com.br>

       •   Dave Rolsky <autarch@urth.org>

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

Donations

       If you'd like to thank me for the work I've done on this module, please consider making a "donation" to
       me via PayPal. I spend a lot of free time creating free software, and would appreciate any support you'd
       care to offer.

       Please note that Iamnotsuggestingthatyoumustdothis in order for me to continue working on this
       particular software. I will continue to do so, inasmuch as I have in the past, for as long as it
       interests me.

       Similarly, a donation made in this way will probably not make me work on this software much more, unless
       I get so many donations that I can consider working on free software full time (let's all have a chuckle
       at that together).

       To donate, log into PayPal and send money to autarch@urth.org, or use the button at
       <http://www.urth.org/~autarch/fs-donation.html>.

Name

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

See Also

Support

       Bugs may be submitted through the RT bug tracker
       <http://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types-PortNumber> (or
       bug-moosex-types-portnumber@rt.cpan.org <mailto:bug-moosex-types-portnumber@rt.cpan.org>).

       I am also usually active on IRC as 'drolsky' on "irc://irc.perl.org".

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' );

Version

       version 0.03

See Also