IPDevice::RouterBase::IPHost
use IPDevice::RouterBase::IPHost; my $map = new IPDevice::RouterBase::IPHost("localhost", "80"); $map->set_ip('127.0.0.1');
This module provides a base class, providing routines for storing informations regarding an hostname <-> IP mapping.
Object constructor. Valid arguments:
hostname: The hostname to be mapped.
port: The port number to be mapped, or -1 for all ports.
Set the hostname.
Returns the hostname.
Defines the port number.
Returns the port number.
Defines the destination IP address.
Returns the destination IP address.
Copyright (c) 2004 Samuel Abels. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Samuel Abels <spam debain org>
To install IPDevice::IPv4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IPDevice::IPv4
CPAN shell
perl -MCPAN -e shell install IPDevice::IPv4
For more information on module installation, please visit the detailed CPAN module installation guide.