ESPHome  2024.2.1
Public Member Functions | Protected Attributes
esphome::network::IPAddress Struct Reference

#include <ip_address.h>

Public Member Functions

 IPAddress ()
 
 IPAddress (uint8_t first, uint8_t second, uint8_t third, uint8_t fourth)
 
 IPAddress (const std::string &in_address)
 
 IPAddress (const ip_addr_t *other_ip)
 
 IPAddress ()
 
 IPAddress (uint8_t first, uint8_t second, uint8_t third, uint8_t fourth)
 
 IPAddress (const ip_addr_t *other_ip)
 
 IPAddress (const std::string &in_address)
 
 IPAddress (ip4_addr_t *other_ip)
 
 IPAddress (const arduino_ns::IPAddress &other_ip)
 
 IPAddress (ip6_addr_t *other_ip)
 
 IPAddress (esp_ip6_addr_t *other_ip)
 
 IPAddress (esp_ip4_addr_t *other_ip)
 
 operator esp_ip_addr_t () const
 
 operator esp_ip4_addr_t () const
 
 operator ip_addr_t () const
 
 operator ip4_addr_t () const
 
 operator arduino_ns::IPAddress () const
 
bool is_set ()
 
bool is_ip4 ()
 
bool is_ip6 ()
 
std::string str () const
 
bool operator== (const IPAddress &other) const
 
bool operator!= (const IPAddress &other) const
 
IPAddressoperator+= (uint8_t increase)
 

Protected Attributes

ip_addr_t ip_addr_
 

Detailed Description

Definition at line 40 of file ip_address.h.

Constructor & Destructor Documentation

◆ IPAddress() [1/13]

esphome::network::IPAddress::IPAddress ( )
inline

Definition at line 43 of file ip_address.h.

◆ IPAddress() [2/13]

esphome::network::IPAddress::IPAddress ( uint8_t  first,
uint8_t  second,
uint8_t  third,
uint8_t  fourth 
)
inline

Definition at line 44 of file ip_address.h.

◆ IPAddress() [3/13]

esphome::network::IPAddress::IPAddress ( const std::string &  in_address)
inline

Definition at line 47 of file ip_address.h.

◆ IPAddress() [4/13]

esphome::network::IPAddress::IPAddress ( const ip_addr_t other_ip)
inline

Definition at line 48 of file ip_address.h.

◆ IPAddress() [5/13]

esphome::network::IPAddress::IPAddress ( )
inline

Definition at line 50 of file ip_address.h.

◆ IPAddress() [6/13]

esphome::network::IPAddress::IPAddress ( uint8_t  first,
uint8_t  second,
uint8_t  third,
uint8_t  fourth 
)
inline

Definition at line 51 of file ip_address.h.

◆ IPAddress() [7/13]

esphome::network::IPAddress::IPAddress ( const ip_addr_t other_ip)
inline

Definition at line 54 of file ip_address.h.

◆ IPAddress() [8/13]

esphome::network::IPAddress::IPAddress ( const std::string &  in_address)
inline

Definition at line 55 of file ip_address.h.

◆ IPAddress() [9/13]

esphome::network::IPAddress::IPAddress ( ip4_addr_t other_ip)
inline

Definition at line 56 of file ip_address.h.

◆ IPAddress() [10/13]

esphome::network::IPAddress::IPAddress ( const arduino_ns::IPAddress &  other_ip)
inline

Definition at line 63 of file ip_address.h.

◆ IPAddress() [11/13]

esphome::network::IPAddress::IPAddress ( ip6_addr_t *  other_ip)
inline

Definition at line 66 of file ip_address.h.

◆ IPAddress() [12/13]

esphome::network::IPAddress::IPAddress ( esp_ip6_addr_t *  other_ip)
inline

Definition at line 74 of file ip_address.h.

◆ IPAddress() [13/13]

esphome::network::IPAddress::IPAddress ( esp_ip4_addr_t *  other_ip)
inline

Definition at line 79 of file ip_address.h.

Member Function Documentation

◆ is_ip4()

bool esphome::network::IPAddress::is_ip4 ( )
inline

Definition at line 110 of file ip_address.h.

◆ is_ip6()

bool esphome::network::IPAddress::is_ip6 ( )
inline

Definition at line 111 of file ip_address.h.

◆ is_set()

bool esphome::network::IPAddress::is_set ( )
inline

Definition at line 109 of file ip_address.h.

◆ operator arduino_ns::IPAddress()

esphome::network::IPAddress::operator arduino_ns::IPAddress ( ) const
inline

Definition at line 106 of file ip_address.h.

◆ operator esp_ip4_addr_t()

esphome::network::IPAddress::operator esp_ip4_addr_t ( ) const
inline

Definition at line 89 of file ip_address.h.

◆ operator esp_ip_addr_t()

esphome::network::IPAddress::operator esp_ip_addr_t ( ) const
inline

Definition at line 80 of file ip_address.h.

◆ operator ip4_addr_t()

esphome::network::IPAddress::operator ip4_addr_t ( ) const
inline

Definition at line 102 of file ip_address.h.

◆ operator ip_addr_t()

esphome::network::IPAddress::operator ip_addr_t ( ) const
inline

Definition at line 100 of file ip_address.h.

◆ operator!=()

bool esphome::network::IPAddress::operator!= ( const IPAddress other) const
inline

Definition at line 114 of file ip_address.h.

◆ operator+=()

IPAddress& esphome::network::IPAddress::operator+= ( uint8_t  increase)
inline

Definition at line 115 of file ip_address.h.

◆ operator==()

bool esphome::network::IPAddress::operator== ( const IPAddress other) const
inline

Definition at line 113 of file ip_address.h.

◆ str()

std::string esphome::network::IPAddress::str ( ) const
inline

Definition at line 112 of file ip_address.h.

Field Documentation

◆ ip_addr_

ip_addr_t esphome::network::IPAddress::ip_addr_
protected

Definition at line 128 of file ip_address.h.


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