NAME

Farly::Transport::Port - TCP/UDP port class

DESCRIPTION

This class represents a TCP or UDP port number.

Inherits from Farly::Transport::Object.

METHODS

new( <string> )

The constructor accepts a decimal port number

my $port = Farly::Transport::Port->new( 80 );

port()

Returns the integer port number

$8_bit_int = $port->port();

first()

Returns the port number

$8_bit_int = $port->first();

last()

Returns the port number

$8_bit_int = $port->last();

as_string()

Returns the current Farly::Transport::Port an integer

print $port->as_string();

iter()

Returns an array containing the current Port object. For use in Set calculations.

my @array = $port->iter();

COPYRIGHT AND LICENSE

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/>.