9namespace Arp {
namespace System {
namespace Commons {
namespace Net
70 String ToString(
void)
const;
73 static bool IsLocalhostString(
const String& input);
79 static const char* localhostString1;
80 static const char* localhostString2;
81 static const char* localhostString3;
82 static const char* localhostAddress;
93 return this->ipV4Value == 0;
98 return this->ipV4Value;
103 this->ipV4Value = ip4Address;
109 os << ipAddress.ToString();
Unified representation for ip address schemes.
Definition: IpAddress.hpp:14
static IpAddress Parse(const String &input)
Parses an ip address from string bases representation, e.g. "127.0.0.1".
IpAddress & operator=(const IpAddress &arg)=default
Assignment operator.
~IpAddress(void)=default
Destructs this instance and frees all resources.
IpV4Value GetIpv4Value(void) const
Returns the ip address in ip v4 address scheme.
Definition: IpAddress.hpp:96
IpAddress(void)=default
Constructs an IpAddress instance.
IpAddress(const IpAddress &arg)=default
Copy constructor.
uint32 IpV4Value
Value-type-definition for ip addresses using version 4 scheme.
Definition: IpAddress.hpp:18
bool IsEmpty(void) const
Determines if this instance is empty, e.g. the address value is zero.
Definition: IpAddress.hpp:91
static bool TryParse(const String &input, IpAddress &result)
Tries to parse an address from string based representation.
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:36
std::ostream & operator<<(std::ostream &os, const IpAddress &ipAddress)
The ostream operator is used for logging and string formatting.
Definition: IpAddress.hpp:107
std::istream & operator>>(std::istream &is, IpAddress &ipAddress)
The istream operator is used for string parsing.
Definition: IpAddress.hpp:114
Root namespace for the PLCnext API