| |
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 |
| AddressHolder::Handle | validate () |
| | Throw IllegalArgumentException if any values are invalid. |
| virtual String::View | getHost () const |
| | Return the host name. |
| virtual uint16_t | getPort () const |
| | Return the port number. |
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. |