Farly::Transport::Port - TCP/UDP port class
This class represents a TCP or UDP port number.
Inherits from Farly::Transport::Object.
The constructor accepts a decimal port number
my $port = Farly::Transport::Port->new( 80 );
Returns the integer port number
$8_bit_int = $port->port();
Returns the port number
$8_bit_int = $port->first();
$8_bit_int = $port->last();
Returns the current Farly::Transport::Port an integer
print $port->as_string();
Returns an array containing the current Port object. For use in Set calculations.
my @array = $port->iter();
Farly::Transport::Port Copyright (C) 2012 Trystan Johnson
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
To install Farly, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Farly
CPAN shell
perl -MCPAN -e shell install Farly
For more information on module installation, please visit the detailed CPAN module installation guide.