-
Notifications
You must be signed in to change notification settings - Fork 23
QuantumGate::IPEndpoint::IPEndpoint
Karel Donk edited this page Dec 23, 2021
·
5 revisions
Constructs a QuantumGate::IPEndpoint
object.
-
constexpr IPEndpoint() noexcept;
-
constexpr IPEndpoint(const Protocol protocol, const IPAddress& ipaddr, const UInt16 port);
-
constexpr IPEndpoint(const Protocol protocol, const IPAddress& ipaddr, const UInt16 port, const RelayPort rport, const RelayHop hop);
-
IPEndpoint(const Protocol protocol, const sockaddr_storage* addr);
Name | Description |
---|---|
protocol |
The protocol to use for the endpoint. See QuantumGate::IPEndpoint::Protocol for more details. |
ipaddr |
The IP address of the endpoint. See QuantumGate::IPAddress for more details. |
port |
The port of the endpoint. |
rport |
The relay port of the endpoint. |
hop |
The hop count of the endpoint. |
addr |
A pointer to a sockaddr_storage object with the endpoint information. |
May throw a std::invalid_argument
exception when the protocol
or addr
parameters are invalid.