Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::net::AddressPool< ADDRESS > Class Template Referencefinal

IP address pool. More...

#include <AddressPool.h>

Static Public Member Functions

static std::shared_ptr< ADDRESS > lookup (const std::string &domain) noexcept
 

Private Member Functions

 AddressPool ()=default
 

Private Attributes

std::map< std::string, std::shared_ptr< ADDRESS > > addressMap
 

Static Private Attributes

static AddressPool pool
 

Detailed Description

template<class ADDRESS>
class sese::net::AddressPool< ADDRESS >

IP address pool.

Constructor & Destructor Documentation

◆ AddressPool()

template<class ADDRESS >
sese::net::AddressPool< ADDRESS >::AddressPool ( )
privatedefault

Member Function Documentation

◆ lookup()

template<class ADDRESS >
std::shared_ptr< ADDRESS > sese::net::AddressPool< ADDRESS >::lookup ( const std::string & domain)
staticnoexcept

Get the mapping between domain name and IP address

Parameters
domainThe domain name
Return values
nullptrNot found in cache and lookup failed
otherAddress found

Referenced by sese::net::http::RequestParser::parseAddress().

Member Data Documentation

◆ addressMap

template<class ADDRESS >
std::map<std::string, std::shared_ptr<ADDRESS> > sese::net::AddressPool< ADDRESS >::addressMap
private

◆ pool

template<class ADDRESS >
AddressPool< ADDRESS > sese::net::AddressPool< ADDRESS >::pool
staticprivate

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