EtherRaw
Public Member Functions
IPv6Address Class Reference

Support for IPv6 addresses. More...

#include <EtherRaw.h>

List of all members.

Public Member Functions

 IPv6Address ()
 IPv6Address (const uint8_t *address)
bool operator== (const IPv6Address &addr)
bool operator== (const uint8_t *addr)
IPv6Addressoperator= (const uint8_t *addr)
const uint8_t * address () const

Detailed Description

Support for IPv6 addresses.

This class allows easy access to the contents of an IPv6 address in on-the-wire format.


Constructor & Destructor Documentation

IPv6Address::IPv6Address ( )

Constructor. Clears the address to all zeros

IPv6Address::IPv6Address ( const uint8_t *  address)

Constructor. Initialise the address from some other array or structure.

Parameters:
[in]addressPointer to 4 octets of IPv4 address

Member Function Documentation

const uint8_t * IPv6Address::address ( ) const

Access the raw address as an array of octets.

Returns:
The raw address
IPv6Address & IPv6Address::operator= ( const uint8_t *  addr)

Assignment operator. Copies the raw address pointed to by addr to this address.

Parameters:
[in]addrThe raw address to be used to initialise this address
Returns:
This address
bool IPv6Address::operator== ( const IPv6Address addr)

Equality operator. Tests whether 2 addresses are identical.

Parameters:
[in]addrThe other address
Returns:
true if address is identical to this address
bool IPv6Address::operator== ( const uint8_t *  addr)

Equality operator. Tests whether 2 addresses are identical.

Parameters:
[in]addrThe other address as some raw array or structure
Returns:
true if address is identical to this address

The documentation for this class was generated from the following files: