Skip to content

QuantumGate::IPAddress::TryParse

Karel Donk edited this page Dec 23, 2021 · 5 revisions

Attempts to parse an IP address from a string.

Signature

static bool TryParse(const WChar* ipaddr_str, IPAddress& ipaddr) noexcept;
static bool TryParse(const String& ipaddr_str, IPAddress& ipaddr) noexcept;
static bool TryParse(const BinaryIPAddress& bin_ipaddr, IPAddress& ipaddr) noexcept;

Parameters

Name Description
ipaddr_str The IP address in string format.
bin_ipaddr A QuantumGate::BinaryIPAddress containing the IP address.
ipaddr The QuantumGate::IPAddress object to store the parsed value in.

Return values

Returns true if the operation succeeded, otherwise false. Upon successful completion the parsed address will be stored in the ipaddr parameter.

Clone this wiki locally