TAO_IIOP_Endpoint.
More...
#include <IIOP_Endpoint.h>
Detailed Description
TAO_IIOP_Endpoint.
IIOP-specific implementation of PP Framework Endpoint interface.
Constructor & Destructor Documentation
TAO_IIOP_Endpoint::TAO_IIOP_Endpoint |
( |
void |
| ) |
|
Constructor. This is the most efficient constructor since it does not require any address resolution processing.
TAO_IIOP_Endpoint::TAO_IIOP_Endpoint |
( |
const ACE_INET_Addr & |
addr, |
|
|
int |
use_dotted_decimal_addresses |
|
) |
| |
Constructor. This constructor is used when decoding endpoints.
TAO_IIOP_Endpoint::~TAO_IIOP_Endpoint |
( |
void |
| ) |
|
Canonical copy constructor.
In private section to prevent clients from invoking this accidentally. Clients should only use duplicate () to make a deep copy
Member Function Documentation
Chain a new duplicate of ourself with the specified local preferred interface.
int TAO_IIOP_Endpoint::addr_to_string |
( |
char * |
buffer, |
|
|
size_t |
length |
|
) |
| |
|
virtual |
Return a string representation for the address.
The purpose of this method is to provide a general interface to the underlying address object's addr_to_string
method. This allows the protocol implementor to select the appropriate string format.
- Returns
- -1 if buffer is too small.
Implements TAO_Endpoint.
Return a hash value for this object.
Implements TAO_Endpoint.
const char* TAO_IIOP_Endpoint::host |
( |
void |
| ) |
const |
Return a pointer to the host string. This object maintains ownership of this string.
const char * TAO_IIOP_Endpoint::host |
( |
const char * |
h | ) |
|
Copy the string h into <host_> and return the resulting pointer. This object maintains ownership of this string.
Return true if this endpoint is equivalent to other_endpoint. Two endpoints are equivalent if their port and host are the same.
Implements TAO_Endpoint.
bool TAO_IIOP_Endpoint::is_preferred_network |
( |
void |
| ) |
const |
Do we have a preferred local network for the target?
Endpoints can be linked in a list.
- Returns
- The next endpoint in the list, if any.
Implements TAO_Endpoint.
Return the next endpoint in the list, but use protocol-specific filtering to constrain the value. The orb core is needed to supply any sort of filter arguments, and the root endpoint is needed in case the algorithm needs to rewind. If the supplied root is 0, then this is assumed to be the candidate next endpoint.
To use this, the caller starts off the change with root == 0. This is a bit of a violation in logic, a more correct implementation would accept this == 0 and a non-null root. To do iteration using next_filtered, do: for (TAO_Endpoint *ep = root_endpoint->next_filtered (orb_core, 0); ep != 0; ep = ep->next_filtered(orb_core, root_endpoint)) { }
Reimplemented from TAO_Endpoint.
const ACE_INET_Addr & TAO_IIOP_Endpoint::object_addr |
( |
void |
| ) |
const |
Return a reference to the <object_addr>.
void TAO_IIOP_Endpoint::object_addr_i |
( |
void |
| ) |
const |
|
private |
Helper method for object_addr () call.
Need to have an assignment operator since the IIOP_Profile class may have to reorder its list of endpoints based on filtering by the EndpointPolicy.
Generate preferred interfaces from the options passed in by the user.
const char * TAO_IIOP_Endpoint::preferred_network |
( |
void |
| ) |
const |
Return the preferred network if any.
int TAO_IIOP_Endpoint::set |
( |
const ACE_INET_Addr & |
addr, |
|
|
int |
use_dotted_decimal_addresses |
|
) |
| |
|
private |
Helper method for setting INET_Addr.
Friends And Related Function Documentation
friend class TAO_SSLIOP_Profile |
|
friend |
Member Data Documentation
String representing the host name.
bool TAO_IIOP_Endpoint::is_encodable_ |
|
private |
Is this endpoint created encodable as part of the IOR?
IIOP Endpoints can be stringed into a list. Return the next endpoint in the list, if any.
Cached instance of ACE_INET_Addr for use in making invocations, etc.
bool TAO_IIOP_Endpoint::object_addr_set_ |
|
mutableprivate |
Flag to indicate if the address has been resolved and set.
TAO::IIOP_Endpoint_Info TAO_IIOP_Endpoint::preferred_path_ |
|
private |
Preferred path for this endpoint.
The documentation for this class was generated from the following files: