Member values
Member name | Data type | Description |
---|---|---|
ip_address | uint32 | IPv4 address |
subnet_mask | uint32 | IPv4 subnet mask |
default_gateway | uint32 | Gateway IPv4 address |
dhcp_enabled | bool | Enable automatic (DHCP) IPv4 configuration. Set to true to enable DHCP instead of static configuration. |
Member functions
Function name | Return type | Input type | Description |
---|---|---|---|
ip_address() | uint32 | void | Returns the current value of ip_address. If the ip_address is not set, returns 0. |
set_ip_address() | void | uint32 | Sets the value of ip_address. After calling this, ip_address() will return value. |
clear_ip_address() | void | void | Clears the value of ip_address. After calling this, ip_address() will return 0. |
subnet_mask() | uint32 | void | Returns the current value of subnet_mask. If the subnet_mask is not set, returns 0. |
set_subnet_mask() | void | uint32 | Sets the value of subnet_mask. After calling this, subnet_mask() will return value. |
clear_subnet_mask() | void | void | Clears the value of subnet_mask. After calling this, subnet_mask() will return 0. |
default_gateway() | uint32 | void | Returns the current value of default_gateway. If the default_gateway is not set, returns 0. |
set_default_gateway() | void | uint32 | Sets the value of default_gateway. After calling this, default_gateway() will return value. |
clear_default_gateway() | void | void | Clears the value of default_gateway. After calling this, default_gateway() will return 0. |
dhcp_enabled() | bool | void | Returns the current value of dhcp_enabled. If the dhcp_enabled is not set, returns 0. |
set_dhcp_enabled() | void | bool | Sets the value of dhcp_enabled. After calling this, dhcp_enabled() will return value. |
clear_dhcp_enabled() | void | void | Clears the value of dhcp_enabled. After calling this, dhcp_enabled() will return 0. |
Parent topic: Base (C++)