SDK  23.9.2
For IoT System Software Development
Public Types | Public Member Functions | Public Attributes | List of all members
IPv6Address Class Reference
Inheritance diagram for IPv6Address:
Printable

Public Types

enum  Type_t {
  TYPE_GLOBAL = (-1), TYPE_ANY = (-2), TYPE_UNSPECIFIED = (-3), TYPE_LINKLOCAL = (-4),
  TYPE_MULTICAST = (-5), TYPE_LOOPBACK = (-6)
}
 

Public Member Functions

 IPv6Address (const uint8_t *address)
 
 IPv6Address (const uint32_t *address)
 
bool fromString (const char *address)
 
bool fromString (const String &address)
 
 operator const uint8_t * () const
 
 operator const uint32_t * () const
 
bool operator== (const IPv6Address &addr) const
 
bool operator== (const uint8_t *addr) const
 
IPv6Addressoperator= (const uint8_t *address)
 
String toString () const
 
char * toCString (char *outBuf, size_t outBufLen) const
 
size_t printTo (Print &p) const
 
void mask (uint8_t prefixLen)
 
bool prefixMatched (const IPv6Address &addr, uint8_t prefixLen) const
 
Type_t getType () const
 Distinguish the type of the address. More...
 

Public Attributes

union {
   uint8_t   s6_addr [16]
 
   uint16_t   s6_addr16 [8]
 
   uint32_t   s6_addr32 [4]
 
}; 
 

Member Function Documentation

◆ getType()

Type_t IPv6Address::getType ( ) const

Distinguish the type of the address.

Returns
Address type

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