openikev2::IpAddress Class Reference

This abstract class represents an IP address of any kind. More...

#include <ipaddress.h>

Inheritance diagram for openikev2::IpAddress:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual uint16_t getAddressSize () const=0
 Returns IpAddress bytes representation size.
virtual uint16_t getPort () const=0
 Returns IpAddress port number.
virtual void setPort (uint16_t port)=0
 Sets IpAddress port number.
virtual uint32_t getFamily () const=0
 Gets the IpAddress family.
virtual bool equalTo (const IpAddress &other) const
 Returns if this IpAddress object is equal to another one.
virtual bool equalToWithoutPort (const IpAddress &other) const
 Returns if this IpAddress object is equal to another one, excepting port number.
virtual auto_ptr< ByteArraygetBytes () const=0
 Gets the byte representation of the IPAdress.
virtual auto_ptr< AttributecloneAttribute () const
 Creates a new IpAddress object cloning this as an Attribute.
virtual auto_ptr< IpAddressclone () const=0
 Creates a new IpAddress object cloning this.
virtual string toStringTab (uint8_t tabs) const =0
 Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.

Detailed Description

This abstract class represents an IP address of any kind.

Author:
Alejandro Perez Mendez, Pedro J. Fernandez Ruiz <alejandro_perez@dif.um.es, pedroj.fernandez@dif.um.es>


Member Function Documentation

virtual uint16_t openikev2::IpAddress::getAddressSize (  )  const [pure virtual]

Returns IpAddress bytes representation size.

Returns:
Address size

virtual uint16_t openikev2::IpAddress::getPort (  )  const [pure virtual]

Returns IpAddress port number.

Returns:
Port number

virtual uint32_t openikev2::IpAddress::getFamily (  )  const [pure virtual]

Gets the IpAddress family.

Returns:
Address family.

bool openikev2::IpAddress::equalTo ( const IpAddress other  )  const [virtual]

Returns if this IpAddress object is equal to another one.

Parameters:
other Other IpAddress
Returns:
TRUE if are equals. FALSE otherwise

bool openikev2::IpAddress::equalToWithoutPort ( const IpAddress other  )  const [virtual]

Returns if this IpAddress object is equal to another one, excepting port number.

Parameters:
other Other IpAddress
Returns:
true if equals, false otherwise

virtual auto_ptr<ByteArray> openikev2::IpAddress::getBytes (  )  const [pure virtual]

Gets the byte representation of the IPAdress.

Returns:
Byte representation.

auto_ptr< Attribute > openikev2::IpAddress::cloneAttribute (  )  const [virtual]

Creates a new IpAddress object cloning this as an Attribute.

Returns:
The new Attribute object

Implements openikev2::Attribute.

virtual auto_ptr<IpAddress> openikev2::IpAddress::clone (  )  const [pure virtual]

Creates a new IpAddress object cloning this.

Returns:
The new IPaddress object.

virtual string openikev2::IpAddress::toStringTab ( uint8_t  tabs  )  const [pure virtual]

Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.

Parameters:
tabs Num of tabs preceding the textual representation.
Returns:
Textual tabulated represetation of the object.

Implements openikev2::Attribute.


Generated on Fri Jul 27 11:04:51 2007 for libopenikev2 by  doxygen 1.5.1