|
/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/IPDevice/blib/lib/IPDevice/RouterBase/IPHost.pm |
set_hostname($hostname)get_hostname()set_port($port)get_port()set_ip($ip)get_ip()
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_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 (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>
|
/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/IPDevice/blib/lib/IPDevice/RouterBase/IPHost.pm |