TAO_Strategies  2.1.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | Friends
TAO_DIOP_Endpoint Class Reference

TAO_DIOP_Endpoint. More...

#include <DIOP_Endpoint.h>

Inheritance diagram for TAO_DIOP_Endpoint:
Inheritance graph
[legend]
Collaboration diagram for TAO_DIOP_Endpoint:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_DIOP_Endpoint (void)
 Default constructor.
 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.
 TAO_DIOP_Endpoint (const char *host, CORBA::UShort port, CORBA::Short priority)
 Constructor. This constructor is used when decoding endpoints.
 ~TAO_DIOP_Endpoint (void)
 Destructor.
const ACE_INET_Addrobject_addr (void) const
 Return a reference to the <object_addr>.
const char * host (void) const
const char * host (const char *h)
CORBA::UShort port (void) const
 Return the port number.
CORBA::UShort port (CORBA::UShort p)
 Set the port number.
TAO_Endpoint Methods

Please check the documentation in Endpoint.h for details.

virtual TAO_Endpointnext (void)
virtual int addr_to_string (char *buffer, size_t length)
virtual TAO_Endpointduplicate (void)
CORBA::Boolean is_equivalent (const TAO_Endpoint *other_endpoint)
CORBA::ULong hash (void)
 Return a hash value for this object.

Private Member Functions

int set (const ACE_INET_Addr &addr, int use_dotted_decimal_addresses)
 Helper method for setting INET_Addr.
void object_addr_i (void) const
 Helper method for object_addr () call.

Private Attributes

CORBA::String_var host_
 String representing the host name.
CORBA::UShort port_
 TCP port number.
ACE_INET_Addr object_addr_
bool object_addr_set_
 Flag to indicate if the address has been resolved and set.
TAO_DIOP_Endpointnext_

Friends

class TAO_DIOP_Profile
class TAO_SSLIOP_Profile

Detailed Description

TAO_DIOP_Endpoint.

DIOP-specific implementation of PP Framework Endpoint interface.


Constructor & Destructor Documentation

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.

Destructor.


Member Function Documentation

int TAO_DIOP_Endpoint::addr_to_string ( char *  buffer,
size_t  length 
)
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.

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.

Return a hash value for this object.

Implements TAO_Endpoint.

const char * TAO_DIOP_Endpoint::host ( void  ) const
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.

CORBA::Boolean TAO_DIOP_Endpoint::is_equivalent ( const TAO_Endpoint other_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.

TAO_Endpoint * TAO_DIOP_Endpoint::next ( void  )
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.

Return a reference to the <object_addr>.

void TAO_DIOP_Endpoint::object_addr_i ( void  ) const
private

Helper method for object_addr () call.

CORBA::UShort TAO_DIOP_Endpoint::port ( void  ) const
inline

Return the port number.

Set the port number.

int TAO_DIOP_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_DIOP_Profile
friend
friend class TAO_SSLIOP_Profile
friend

Member Data Documentation

String representing the host name.

DIOP 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.

Flag to indicate if the address has been resolved and set.

TCP port number.


The documentation for this class was generated from the following files: