|
SNode.C
|
#include <ConfigAddress.h>
Public Member Functions | |
| SocketAddress | getSocketAddress (const SocketAddress::SockAddr &sockAddr, SocketAddress::SockLen sockAddrLen) |
| ConfigAddress & | setSocketAddress (const SocketAddress &socketAddress) |
| ConfigAddress & | setHost (const std::string &ipOrHostname) |
| std::string | getHost () const |
| ConfigAddress & | setPort (uint16_t port) |
| uint16_t | getPort () const |
| ConfigAddress & | setNumeric (bool numeric=true) |
| bool | getNumeric () const |
| ConfigAddress & | setNumericReverse (bool numeric=true) |
| bool | getNumericReverse () const |
Protected Member Functions | |
| ConfigAddress (net::config::ConfigInstance *instance, const std::string &addressOptionName, const std::string &addressOptionDescription) | |
| ConfigAddress & | setIpv4Mapped (bool ipv4Mapped=true) |
| bool | getIpv4Mapped () const |
| ConfigAddress & | setAiFlags (int aiFlags) |
| int | getAiFlags () const |
| ConfigAddress & | setAiSockType (int aiSocktype) |
| int | getAiSockType () const |
| ConfigAddress & | setAiProtocol (int aiProtocol) |
| int | getAiProtocol () const |
| ConfigAddress & | setHostRequired (bool required=true) |
| ConfigAddress & | setPortRequired (bool required=true) |
Private Types | |
| using | Super = ConfigAddressTypeT< SocketAddress > |
Private Member Functions | |
| SocketAddress * | init () final |
Private Attributes | |
| CLI::Option * | hostOpt = nullptr |
| CLI::Option * | portOpt = nullptr |
| CLI::Option * | numericOpt = nullptr |
| CLI::Option * | numericReverseOpt = nullptr |
| CLI::Option * | ipv4MappedOpt = nullptr |
| int | aiFlags = 0 |
| int | aiSockType = 0 |
| int | aiProtocol = 0 |
Definition at line 90 of file ConfigAddress.h.
|
private |
Definition at line 92 of file ConfigAddress.h.
|
explicitprotected |
Definition at line 109 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::hostOpt, net::in6::config::ConfigAddress< ConfigAddressTypeT >::ipv4MappedOpt, net::in6::config::ConfigAddress< ConfigAddressTypeT >::numericOpt, net::in6::config::ConfigAddress< ConfigAddressTypeT >::numericReverseOpt, and net::in6::config::ConfigAddress< ConfigAddressTypeT >::portOpt.
|
protected |
Definition at line 271 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::aiFlags.
|
protected |
Definition at line 295 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::aiProtocol.
|
protected |
Definition at line 283 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::aiSockType.
| std::string net::in6::config::ConfigAddress< ConfigAddressType >::getHost | ( | ) | const |
Definition at line 201 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::hostOpt.
|
protected |
Definition at line 259 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::ipv4MappedOpt.
| bool net::in6::config::ConfigAddress< ConfigAddressType >::getNumeric | ( | ) | const |
Definition at line 234 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::numericOpt.
| bool net::in6::config::ConfigAddress< ConfigAddressTypeT >::getNumericReverse | ( | ) | const |
| uint16_t net::in6::config::ConfigAddress< ConfigAddressType >::getPort | ( | ) | const |
Definition at line 218 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::portOpt.
| SocketAddress net::in6::config::ConfigAddress< ConfigAddressType >::getSocketAddress | ( | const SocketAddress::SockAddr & | sockAddr, |
| SocketAddress::SockLen | sockAddrLen | ||
| ) |
Definition at line 164 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::numericReverseOpt, and net::in6::SocketAddress::SocketAddress().
|
finalprivate |
Definition at line 146 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::hostOpt, net::in6::config::ConfigAddress< ConfigAddressTypeT >::portOpt, and net::in6::SocketAddress::SocketAddress().
|
protected |
Definition at line 264 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::aiFlags.
|
protected |
Definition at line 288 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::aiProtocol.
Referenced by net::in6::stream::config::ConfigSocketClient::ConfigSocketClient(), and net::in6::stream::config::ConfigSocketServer::ConfigSocketServer().
|
protected |
Definition at line 276 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::aiSockType.
Referenced by net::in6::stream::config::ConfigSocketClient::ConfigSocketClient(), and net::in6::stream::config::ConfigSocketServer::ConfigSocketServer().
| ConfigAddress< ConfigAddressType > & net::in6::config::ConfigAddress< ConfigAddressType >::setHost | ( | const std::string & | ipOrHostname | ) |
Definition at line 189 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::hostOpt.
Referenced by net::in6::config::ConfigAddress< ConfigAddressTypeT >::setSocketAddress().
|
protected |
Definition at line 300 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::hostOpt.
Referenced by net::in6::stream::config::ConfigSocketClient::ConfigSocketClient().
|
protected |
Definition at line 248 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::ipv4MappedOpt.
| ConfigAddress< ConfigAddressType > & net::in6::config::ConfigAddress< ConfigAddressType >::setNumeric | ( | bool | numeric = true | ) |
Definition at line 223 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::numericOpt.
| ConfigAddress< ConfigAddressType > & net::in6::config::ConfigAddress< ConfigAddressType >::setNumericReverse | ( | bool | numeric = true | ) |
Definition at line 239 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::numericReverseOpt.
| ConfigAddress< ConfigAddressType > & net::in6::config::ConfigAddress< ConfigAddressType >::setPort | ( | uint16_t | port | ) |
Definition at line 206 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::portOpt.
Referenced by net::in6::config::ConfigAddress< ConfigAddressTypeT >::setSocketAddress().
|
protected |
Definition at line 307 of file ConfigAddress.cpp.
References net::in6::config::ConfigAddress< ConfigAddressTypeT >::portOpt.
Referenced by net::in6::stream::config::ConfigSocketClient::ConfigSocketClient(), and net::in6::stream::config::ConfigSocketServer::ConfigSocketServer().
| ConfigAddress< ConfigAddressType > & net::in6::config::ConfigAddress< ConfigAddressType >::setSocketAddress | ( | const SocketAddress & | socketAddress | ) |
Definition at line 181 of file ConfigAddress.cpp.
References net::in6::SocketAddress::getHost(), net::in6::SocketAddress::getPort(), net::in6::config::ConfigAddress< ConfigAddressTypeT >::setHost(), and net::in6::config::ConfigAddress< ConfigAddressTypeT >::setPort().
|
private |
Definition at line 143 of file ConfigAddress.h.
Referenced by net::in6::config::ConfigAddress< ConfigAddressTypeT >::getAiFlags(), and net::in6::config::ConfigAddress< ConfigAddressTypeT >::setAiFlags().
|
private |
Definition at line 145 of file ConfigAddress.h.
Referenced by net::in6::config::ConfigAddress< ConfigAddressTypeT >::getAiProtocol(), and net::in6::config::ConfigAddress< ConfigAddressTypeT >::setAiProtocol().
|
private |
Definition at line 144 of file ConfigAddress.h.
Referenced by net::in6::config::ConfigAddress< ConfigAddressTypeT >::getAiSockType(), and net::in6::config::ConfigAddress< ConfigAddressTypeT >::setAiSockType().
|
private |
Definition at line 137 of file ConfigAddress.h.
Referenced by net::in6::config::ConfigAddress< ConfigAddressTypeT >::ConfigAddress(), net::in6::config::ConfigAddress< ConfigAddressTypeT >::getHost(), net::in6::config::ConfigAddress< ConfigAddressTypeT >::init(), net::in6::config::ConfigAddress< ConfigAddressTypeT >::setHost(), and net::in6::config::ConfigAddress< ConfigAddressTypeT >::setHostRequired().
|
private |
|
private |
|
private |
|
private |
Definition at line 138 of file ConfigAddress.h.
Referenced by net::in6::config::ConfigAddress< ConfigAddressTypeT >::ConfigAddress(), net::in6::config::ConfigAddress< ConfigAddressTypeT >::getPort(), net::in6::config::ConfigAddress< ConfigAddressTypeT >::init(), net::in6::config::ConfigAddress< ConfigAddressTypeT >::setPort(), and net::in6::config::ConfigAddress< ConfigAddressTypeT >::setPortRequired().