The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IPDevice::RouterBase::IPHost

SYNOPSIS

 use IPDevice::RouterBase::IPHost;
 my $map = new IPDevice::RouterBase::IPHost("localhost", "80");
 $map->set_ip('127.0.0.1');

DESCRIPTION

This module provides a base class, providing routines for storing informations regarding an hostname <-> IP mapping.

CONSTRUCTOR AND METHODS

new($hostname, ($port|-1), [%args])

Object constructor. Valid arguments:

hostname: The hostname to be mapped.

port: The port number to be mapped, or -1 for all ports.

set_hostname($hostname)

Set the hostname.

get_hostname()

Returns the hostname.

set_port($port)

Defines the port number.

get_port()

Returns the port number.

set_ip($ip)

Defines the destination IP address.

get_ip()

Returns the destination IP address.

COPYRIGHT

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.

AUTHOR

Samuel Abels <spam debain org>