EpcTools
An event based multi-threaded C++ development framework.
Public Member Functions | List of all members
EPCDNS::NodeSelectorResult Class Reference

Contains the node selector results. More...

#include <epcdns.h>

Public Member Functions

 NodeSelectorResult ()
 Default constructor. More...
 
const EStringgetHostname ()
 Retrieves the host name. More...
 
uint16_t getOrder ()
 Retrieves the order value. More...
 
uint16_t getPreference ()
 Retrieves the preference value. More...
 
uint16_t getPort ()
 Retrieves the IP port value. More...
 
AppProtocolListgetSupportedProtocols ()
 Retrieves the list supported protocols. More...
 
StringVectorgetIPv4Hosts ()
 Retrieves the list of IPv4 hosts. More...
 
StringVectorgetIPv6Hosts ()
 Retrieves the list of IPv6 hosts. More...
 
uint16_t setOrder (uint16_t order)
 Assigns the order value. More...
 
uint16_t setPreference (uint16_t preference)
 Assigns the preference value. More...
 
uint16_t setPort (uint16_t port)
 Assigns the IP port. More...
 
const EStringsetHostname (const std::string &hostname)
 Assigns the host name. More...
 
Void addSupportedProtocol (AppProtocol *ap)
 Adds the application object to the list. More...
 
Void addIPv4Host (const std::string &host)
 Adds an IPv4 host to the list of IPv4 hosts. More...
 
Void addIPv6Host (const std::string &host)
 Adds an IPv6 host to the list of IPv6 hosts. More...
 
Void dump (const char *prefix)
 Prints the contents of this object. More...
 

Detailed Description

Contains the node selector results.

Constructor & Destructor Documentation

◆ NodeSelectorResult()

EPCDNS::NodeSelectorResult::NodeSelectorResult ( )
inline

Default constructor.

Member Function Documentation

◆ addIPv4Host()

Void EPCDNS::NodeSelectorResult::addIPv4Host ( const std::string &  host)
inline

Adds an IPv4 host to the list of IPv4 hosts.

Parameters
hostthe IPv4 host to add.

◆ addIPv6Host()

Void EPCDNS::NodeSelectorResult::addIPv6Host ( const std::string &  host)
inline

Adds an IPv6 host to the list of IPv6 hosts.

Parameters
hostthe IPv6 host to add.

◆ addSupportedProtocol()

Void EPCDNS::NodeSelectorResult::addSupportedProtocol ( AppProtocol ap)
inline

Adds the application object to the list.

Parameters
apthe application object to be added to the list.

◆ dump()

Void EPCDNS::NodeSelectorResult::dump ( const char *  prefix)
inline

Prints the contents of this object.

Parameters
prefixa value to prepend to each line.

◆ getHostname()

const EString& EPCDNS::NodeSelectorResult::getHostname ( )
inline

Retrieves the host name.

Returns
the host name.

◆ getIPv4Hosts()

StringVector& EPCDNS::NodeSelectorResult::getIPv4Hosts ( )
inline

Retrieves the list of IPv4 hosts.

Returns
the list of IPv4 hosts.

◆ getIPv6Hosts()

StringVector& EPCDNS::NodeSelectorResult::getIPv6Hosts ( )
inline

Retrieves the list of IPv6 hosts.

Returns
the list of IPv6 hosts.

◆ getOrder()

uint16_t EPCDNS::NodeSelectorResult::getOrder ( )
inline

Retrieves the order value.

Returns
the order value.

◆ getPort()

uint16_t EPCDNS::NodeSelectorResult::getPort ( )
inline

Retrieves the IP port value.

Returns
the IP port value.

◆ getPreference()

uint16_t EPCDNS::NodeSelectorResult::getPreference ( )
inline

Retrieves the preference value.

Returns
the preference value.

◆ getSupportedProtocols()

AppProtocolList& EPCDNS::NodeSelectorResult::getSupportedProtocols ( )
inline

Retrieves the list supported protocols.

Returns
the list supported protocols.

◆ setHostname()

const EString& EPCDNS::NodeSelectorResult::setHostname ( const std::string &  hostname)
inline

Assigns the host name.

Parameters
hostnamethe host name.
Returns
the host name.

◆ setOrder()

uint16_t EPCDNS::NodeSelectorResult::setOrder ( uint16_t  order)
inline

Assigns the order value.

Parameters
orderthe order value.
Returns
the order value.

◆ setPort()

uint16_t EPCDNS::NodeSelectorResult::setPort ( uint16_t  port)
inline

Assigns the IP port.

Parameters
portthe IP port.
Returns
the IP port.

◆ setPreference()

uint16_t EPCDNS::NodeSelectorResult::setPreference ( uint16_t  preference)
inline

Assigns the preference value.

Parameters
preferencethe preference value.
Returns
the preference value.

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