OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::DnsAddress Class Reference

A name server address and optional port. More...

#include <dns_options.hpp>

Public Member Functions

std::string to_string () const
 Return string representation of the DnsAddress object.
 
void validate (const std::string &title) const
 

Public Attributes

std::string address
 
unsigned int port = 0
 

Detailed Description

A name server address and optional port.

Definition at line 35 of file dns_options.hpp.

Member Function Documentation

◆ to_string()

std::string openvpn::DnsAddress::to_string ( ) const
inline

Return string representation of the DnsAddress object.

Returns
std::string the string representation generated

Definition at line 42 of file dns_options.hpp.

◆ validate()

void openvpn::DnsAddress::validate ( const std::string &  title) const
inline

Definition at line 53 of file dns_options.hpp.

Member Data Documentation

◆ address

std::string openvpn::DnsAddress::address

Definition at line 81 of file dns_options.hpp.

◆ port

unsigned int openvpn::DnsAddress::port = 0

Definition at line 82 of file dns_options.hpp.


The documentation for this class was generated from the following file: