TAO_Strategies
2.3.3
|
#include <DIOP_Endpoint.h>
Public Member Functions | |
TAO_DIOP_Endpoint (void) | |
Default constructor. More... | |
TAO_DIOP_Endpoint (const char *host, CORBA::UShort port, const ACE_INET_Addr &addr, CORBA::Short priority=TAO_INVALID_PRIORITY) | |
TAO_DIOP_Endpoint (const ACE_INET_Addr &addr, int use_dotted_decimal_addresses) | |
Constructor. More... | |
TAO_DIOP_Endpoint (const char *host, CORBA::UShort port, CORBA::Short priority) | |
Constructor. This constructor is used when decoding endpoints. More... | |
~TAO_DIOP_Endpoint (void) | |
Destructor. More... | |
const ACE_INET_Addr & | object_addr (void) const |
Return a reference to the <object_addr>. More... | |
const char * | host (void) const |
const char * | host (const char *h) |
CORBA::UShort | port (void) const |
Return the port number. More... | |
CORBA::UShort | port (CORBA::UShort p) |
Set the port number. More... | |
TAO_Endpoint Methods | |
Please check the documentation in Endpoint.h for details. | |
virtual TAO_Endpoint * | next (void) |
virtual int | addr_to_string (char *buffer, size_t length) |
virtual TAO_Endpoint * | duplicate (void) |
CORBA::Boolean | is_equivalent (const TAO_Endpoint *other_endpoint) |
CORBA::ULong | hash (void) |
Return a hash value for this object. More... | |
![]() | |
TAO_Endpoint (CORBA::ULong tag, CORBA::Short priority=TAO_INVALID_PRIORITY) | |
virtual | ~TAO_Endpoint (void) |
CORBA::ULong | tag (void) const |
void | priority (CORBA::Short priority) |
CORBA::Short | priority (void) const |
virtual TAO_Endpoint * | next_filtered (TAO_ORB_Core *, TAO_Endpoint *root) |
Private Member Functions | |
int | set (const ACE_INET_Addr &addr, int use_dotted_decimal_addresses) |
Helper method for setting INET_Addr. More... | |
void | object_addr_i (void) const |
Helper method for object_addr () call. More... | |
Private Attributes | |
CORBA::String_var | host_ |
String representing the host name. More... | |
CORBA::UShort | port_ |
TCP port number. More... | |
ACE_INET_Addr | object_addr_ |
bool | object_addr_set_ |
Flag to indicate if the address has been resolved and set. More... | |
TAO_DIOP_Endpoint * | next_ |
Friends | |
class | TAO_DIOP_Profile |
class | TAO_SSLIOP_Profile |
Additional Inherited Members | |
![]() | |
TAO_SYNCH_MUTEX | addr_lookup_lock_ |
CORBA::ULong | hash_val_ |
CORBA::ULong const | tag_ |
CORBA::Short | priority_ |
DIOP-specific implementation of PP Framework Endpoint interface.
TAO_DIOP_Endpoint::TAO_DIOP_Endpoint | ( | void | ) |
Default constructor.
TAO_DIOP_Endpoint::TAO_DIOP_Endpoint | ( | const char * | host, |
CORBA::UShort | port, | ||
const ACE_INET_Addr & | addr, | ||
CORBA::Short | priority = TAO_INVALID_PRIORITY |
||
) |
Constructor. This is the most efficient constructor since it does not require any address resolution processing.
TAO_DIOP_Endpoint::TAO_DIOP_Endpoint | ( | const ACE_INET_Addr & | addr, |
int | use_dotted_decimal_addresses | ||
) |
Constructor.
TAO_DIOP_Endpoint::TAO_DIOP_Endpoint | ( | const char * | host, |
CORBA::UShort | port, | ||
CORBA::Short | priority | ||
) |
Constructor. This constructor is used when decoding endpoints.
TAO_DIOP_Endpoint::~TAO_DIOP_Endpoint | ( | void | ) |
Destructor.
|
virtual |
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.
|
virtual |
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.
|
virtual |
Return a hash value for this object.
Implements TAO_Endpoint.
|
inline |
Return a pointer to the host string. This object maintains ownership of this string.
const char * TAO_DIOP_Endpoint::host | ( | const char * | h | ) |
Copy the string h into <host_> and return the resulting pointer. This object maintains ownership of this string.
|
virtual |
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.
|
virtual |
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.
const ACE_INET_Addr & TAO_DIOP_Endpoint::object_addr | ( | void | ) | const |
Return a reference to the <object_addr>.
|
private |
Helper method for object_addr () call.
|
inline |
Return the port number.
|
inline |
Set the port number.
|
private |
Helper method for setting INET_Addr.
|
friend |
|
friend |
|
private |
String representing the host name.
|
private |
DIOP Endpoints can be strung into a list. Return the next endpoint in the list, if any.
|
mutableprivate |
Cached instance of <ACE_INET_Addr> for use in making invocations, etc.
|
mutableprivate |
Flag to indicate if the address has been resolved and set.
|
private |
TCP port number.