Unified representation for ip address schemes.
More...
#include <IpAddress.hpp>
|
|
using | IpV4Value = uint32 |
| | Value-type-definition for ip addresses using version 4 scheme.
|
| |
Unified representation for ip address schemes.
◆ IpAddress()
| Arp::System::Commons::Net::IpAddress::IpAddress |
( |
uint32 |
ip4Address | ) |
|
Constructs a new representation based on an encoded ip v4 address.
- Parameters
-
| ip4address | The encoded ip v4 address value. |
◆ GetHostValue()
Gets the IP value in host endianess.
- Returns
- The IP address value in host endianess.
According the ntoh function.
◆ GetIpv4Value()
Returns the ip address in IPv4 address scheme.
- Returns
- The IP address in IPv4 address scheme.
This operation is deprecated, use GetNetworkValue instead.
◆ GetNetworkValue()
Gets the IP value in network endianess (big endian).
- Returns
- The IP address value in big endian.
According the hton function.
◆ IsEmpty()
| bool Arp::System::Commons::Net::IpAddress::IsEmpty |
( |
void |
| ) |
const |
Determines if this instance is empty, e.g. the address value is zero.
- Returns
true if this instance is zero, otherwise false.
◆ operator=()
| void Arp::System::Commons::Net::IpAddress::operator= |
( |
Arp::uint32 |
ip4Address | ) |
|
Assigns a new ip v4 address value.
- Parameters
-
| ip4Address | New ip v4 value. |
◆ Parse()
| IpAddress Arp::System::Commons::Net::IpAddress::Parse |
( |
const String & |
input | ) |
|
|
static |
Parses an ip address from string bases representation, e.g. "127.0.0.1".
- Parameters
-
| input | The string based representation of the ip address. |
- Exceptions
-
| Arp::System::Commons::ArgumentException | if the string does not fit any known representation. |
- Returns
- Instance of unified representation.
◆ TryParse()
| bool Arp::System::Commons::Net::IpAddress::TryParse |
( |
const String & |
input, |
|
|
IpAddress & |
result |
|
) |
| |
|
static |
Tries to parse an address from string based representation.
- Parameters
-
| input | The string based representation of the ip address. |
| result | The container for the parsed ip address. |
- Returns
- True if parsing was sucessfull, otherwise false is returned.
The documentation for this class was generated from the following files:
- Arp/System/Commons/Net/IpAddress.hpp
- Arp/System/Commons/Net/IpAddress.cpp