#include <coherence/net/ConfigurableAddressProvider.hpp>
Inherits Object.
Public Types | |
typedef spec::Handle | Handle |
AddressHolder Handle definition. | |
typedef spec::View | View |
AddressHolder View definition. | |
typedef spec::Holder | Holder |
AddressHolder Holder definition. | |
Public Member Functions | |
InetSocketAddress::View | getAddress () const |
Obtain the underlying address. | |
Protected Member Functions | |
AddressHolder (String::View vsHost, int32_t nPort) | |
Construct an AddressHolder for the specified InetSocketAddress. | |
AddressHolder () | |
Create a new AddressHolder instance. | |
virtual bool | isPending () const |
Check whether or not the underlying address has been accepted. | |
virtual void | setPending (bool fPending) |
Set or clear the "pending" flag. | |
virtual bool | isReported () const |
Check whether or not the underlying address has been reported as unresolveable. | |
virtual void | setReported (bool fReported) |
Set of clear the "reported" flag. | |
Protected Attributes | |
FinalView< String > | f_vsHost |
The configured address, either hostname or IP address. | |
const uint16_t | m_nPort |
The configured port. | |
bool | m_fPending |
A flag indicating that the underlying address has been provided to a client, but has not yet been accepted. | |
bool | m_fReported |
Specifies if this address has already been reported as unresolved. |
AddressHolder | ( | String::View | vsHost, | |
int32_t | nPort | |||
) | [protected] |
Construct an AddressHolder for the specified InetSocketAddress.
sHost | the hostname | |
nPort | the port number |
InetSocketAddress::View getAddress | ( | ) | const |
virtual bool isPending | ( | ) | const [protected, virtual] |
Check whether or not the underlying address has been accepted.
virtual void setPending | ( | bool | fPending | ) | [protected, virtual] |
Set or clear the "pending" flag.
fPending | the flag value |
virtual bool isReported | ( | ) | const [protected, virtual] |
Check whether or not the underlying address has been reported as unresolveable.
virtual void setReported | ( | bool | fReported | ) | [protected, virtual] |
Set of clear the "reported" flag.
fReported | the flag value |