Skip to content

QuantumGate::IPAddress::IPAddress

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

Constructs a QuantumGate::IPAddress object.

Signature

constexpr IPAddress() noexcept;
explicit IPAddress(const WChar* ipaddr_str);
explicit IPAddress(const String& ipaddr_str);
explicit IPAddress(const sockaddr_storage* saddr);
explicit IPAddress(const sockaddr* saddr);
constexpr IPAddress(const BinaryIPAddress& bin_ipaddr);

Parameters

Name Description
ipaddr_str The IP address in string format.
saddr A pointer to a sockaddr_storage or sockaddr object.
bin_ipaddr A reference to a QuantumGate::BinaryIPAddress object.

Exceptions

May throw a std::invalid_argument exception when any of the parameters are invalid.

Clone this wiki locally