#include <remotelist.hpp>
|
| | OPENVPN_EXCEPTION (remote_list_error) |
| |
| | RemoteList (RemoteOverride *remote_override_arg) |
| |
| | RemoteList (const std::string &server_host, const std::string &server_port, const Protocol &transport_protocol, const std::string &title) |
| |
| | RemoteList (const OptionList &opt, const std::string &connection_tag, const unsigned int flags, ConnBlockFactory *conn_block_factory, RandomAPI::Ptr rng_arg) |
| |
| void | process_push (const OptionList &opt) |
| |
| void | set_enable_cache (const bool enable_cache_arg) |
| |
| bool | get_enable_cache () const |
| |
| void | set_server_override (const std::string &server_override) |
| |
| void | set_port_override (const std::string &port_override) |
| |
| void | set_proto_version_override (const IP::Addr::Version v) |
| |
| void | set_random (const RandomAPI::Ptr &rng_arg) |
| |
| void | randomize () |
| |
| void | handle_proto_override (const Protocol &proto_override, const bool tcp_proxy_enabled) |
| |
| void | next (Advance type=Advance::Addr) |
| |
| bool | endpoint_available (std::string *server_host, std::string *server_port, Protocol *transport_protocol) const |
| |
| template<class EPRANGE > |
| void | set_endpoint_range (EPRANGE &endpoint_range) |
| |
| template<class EP > |
| void | get_endpoint (EP &endpoint) const |
| |
| bool | defined () const |
| |
| size_t | size () const |
| |
| Item::Ptr | get_item (const size_t index) const |
| |
| std::string | current_server_host () const |
| |
| const Protocol & | current_transport_protocol () const |
| |
| template<typename T > |
| T * | current_conn_block_rawptr () const |
| |
| std::string | to_string () const |
| |
| void | cached_ip_address_list (IP::AddrList &addrlist) const |
| |
| void | reset_cache () |
| |
| void | reset_cache_item () |
| |
| | RC () noexcept=default |
| |
| | RC (const RC &)=delete |
| |
| virtual | ~RC ()=default |
| |
| RC & | operator= (const RC &)=delete |
| |
| olong | use_count () const noexcept |
| | Delegates call to RCImpl and returns the result.
|
| |
|
| static constexpr bool | is_thread_safe () |
| | Delegates call to RCImpl and returns the result.
|
| |
Definition at line 51 of file remotelist.hpp.
◆ Ptr
◆ anonymous enum
| Enumerator |
|---|
| WARN_UNSUPPORTED | |
| CONN_BLOCK_ONLY | |
| CONN_BLOCK_OMIT_UNDEF | |
| ALLOW_EMPTY | |
Definition at line 456 of file remotelist.hpp.
◆ Advance
◆ RemoteList() [1/3]
| openvpn::RemoteList::RemoteList |
( |
RemoteOverride * |
remote_override_arg | ) |
|
|
inline |
◆ RemoteList() [2/3]
| openvpn::RemoteList::RemoteList |
( |
const std::string & |
server_host, |
|
|
const std::string & |
server_port, |
|
|
const Protocol & |
transport_protocol, |
|
|
const std::string & |
title |
|
) |
| |
|
inline |
◆ RemoteList() [3/3]
◆ add()
◆ cached_ip_address_list()
| void openvpn::RemoteList::cached_ip_address_list |
( |
IP::AddrList & |
addrlist | ) |
const |
|
inline |
◆ cached_item_exists()
| bool openvpn::RemoteList::cached_item_exists |
( |
| ) |
const |
|
inlineprivate |
◆ contains_protocol()
| bool openvpn::RemoteList::contains_protocol |
( |
const Protocol & |
proto | ) |
|
|
inlineprivate |
◆ current_conn_block_rawptr()
template<typename T >
| T * openvpn::RemoteList::current_conn_block_rawptr |
( |
| ) |
const |
|
inline |
◆ current_server_host()
| std::string openvpn::RemoteList::current_server_host |
( |
| ) |
const |
|
inline |
◆ current_transport_protocol()
| const Protocol & openvpn::RemoteList::current_transport_protocol |
( |
| ) |
const |
|
inline |
◆ defined()
| bool openvpn::RemoteList::defined |
( |
| ) |
const |
|
inline |
◆ endpoint_available()
| bool openvpn::RemoteList::endpoint_available |
( |
std::string * |
server_host, |
|
|
std::string * |
server_port, |
|
|
Protocol * |
transport_protocol |
|
) |
| const |
|
inline |
◆ get_enable_cache()
| bool openvpn::RemoteList::get_enable_cache |
( |
| ) |
const |
|
inline |
◆ get_endpoint()
template<class EP >
| void openvpn::RemoteList::get_endpoint |
( |
EP & |
endpoint | ) |
const |
|
inline |
◆ get_item()
| Item::Ptr openvpn::RemoteList::get_item |
( |
const size_t |
index | ) |
const |
|
inline |
◆ get_port()
| std::string openvpn::RemoteList::get_port |
( |
const OptionList & |
opt, |
|
|
const std::string & |
default_port |
|
) |
| |
|
inlineprivate |
◆ get_proto()
◆ handle_proto_override()
| void openvpn::RemoteList::handle_proto_override |
( |
const Protocol & |
proto_override, |
|
|
const bool |
tcp_proxy_enabled |
|
) |
| |
|
inline |
◆ item_addr_length()
| size_t openvpn::RemoteList::item_addr_length |
( |
const size_t |
i | ) |
const |
|
inlineprivate |
◆ item_index()
| size_t openvpn::RemoteList::item_index |
( |
| ) |
const |
|
inlineprivate |
◆ next()
◆ OPENVPN_EXCEPTION()
| openvpn::RemoteList::OPENVPN_EXCEPTION |
( |
remote_list_error |
| ) |
|
◆ process_cache_lifetime()
| void openvpn::RemoteList::process_cache_lifetime |
( |
const OptionList & |
opt | ) |
|
|
inlineprivate |
◆ process_push()
| void openvpn::RemoteList::process_push |
( |
const OptionList & |
opt | ) |
|
|
inline |
◆ prune_uncached()
| void openvpn::RemoteList::prune_uncached |
( |
| ) |
|
|
inlineprivate |
◆ randomize()
| void openvpn::RemoteList::randomize |
( |
| ) |
|
|
inline |
◆ randomize_host()
| void openvpn::RemoteList::randomize_host |
( |
Item & |
item | ) |
|
|
inlineprivate |
◆ reset_cache()
| void openvpn::RemoteList::reset_cache |
( |
| ) |
|
|
inline |
◆ reset_cache_item()
| void openvpn::RemoteList::reset_cache_item |
( |
| ) |
|
|
inline |
◆ reset_item()
| void openvpn::RemoteList::reset_item |
( |
const size_t |
i | ) |
|
|
inlineprivate |
◆ set_enable_cache()
| void openvpn::RemoteList::set_enable_cache |
( |
const bool |
enable_cache_arg | ) |
|
|
inline |
◆ set_endpoint_range()
template<class EPRANGE >
| void openvpn::RemoteList::set_endpoint_range |
( |
EPRANGE & |
endpoint_range | ) |
|
|
inline |
◆ set_port_override()
| void openvpn::RemoteList::set_port_override |
( |
const std::string & |
port_override | ) |
|
|
inline |
◆ set_proto_override()
| void openvpn::RemoteList::set_proto_override |
( |
const Protocol & |
proto_override | ) |
|
|
inlineprivate |
◆ set_proto_version_override()
◆ set_random()
| void openvpn::RemoteList::set_random |
( |
const RandomAPI::Ptr & |
rng_arg | ) |
|
|
inline |
◆ set_server_override()
| void openvpn::RemoteList::set_server_override |
( |
const std::string & |
server_override | ) |
|
|
inline |
◆ size()
| size_t openvpn::RemoteList::size |
( |
| ) |
const |
|
inline |
◆ to_string()
| std::string openvpn::RemoteList::to_string |
( |
| ) |
const |
|
inline |
◆ unsupported_in_connection_block()
| void openvpn::RemoteList::unsupported_in_connection_block |
( |
const OptionList & |
options, |
|
|
const std::string & |
option |
|
) |
| |
|
inlineprivate |
◆ cache_lifetime
| std::size_t openvpn::RemoteList::cache_lifetime = 0 |
|
private |
◆ directives
◆ enable_cache
| bool openvpn::RemoteList::enable_cache = false |
|
private |
◆ index
| Index openvpn::RemoteList::index |
|
private |
◆ list
| std::vector<Item::Ptr> openvpn::RemoteList::list |
|
private |
◆ random
| bool openvpn::RemoteList::random = false |
|
private |
◆ random_hostname
| bool openvpn::RemoteList::random_hostname = false |
|
private |
◆ remote_override
◆ rng
The documentation for this class was generated from the following file: