TAO_Strategies  2.3.3
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
TAO_SCIOP_Endpoint Class Reference

TAO_SCIOP_Endpoint. More...

#include <SCIOP_Endpoint.h>

Inheritance diagram for TAO_SCIOP_Endpoint:
Inheritance graph
Collaboration diagram for TAO_SCIOP_Endpoint:
Collaboration graph

Public Member Functions

 TAO_SCIOP_Endpoint (void)
 Default constructor. More...
 TAO_SCIOP_Endpoint (const char *host, CORBA::UShort port, const ACE_INET_Addr &addr, CORBA::Short priority=TAO_INVALID_PRIORITY)
 TAO_SCIOP_Endpoint (const ACE_INET_Addr &addr, int use_dotted_decimal_addresses)
 Constructor. More...
 TAO_SCIOP_Endpoint (const char *host, CORBA::UShort port, CORBA::Short priority)
 Constructor. This constructor is used when decoding endpoints. More...
 ~TAO_SCIOP_Endpoint (void)
 Destructor. More...
virtual TAO_Endpointnext (void)
virtual int addr_to_string (char *buffer, size_t length)
virtual TAO_Endpointduplicate (void)
virtual CORBA::Boolean is_equivalent (const TAO_Endpoint *other_endpoint)
virtual CORBA::ULong hash (void)
 Return a hash value for this object. More...
const ACE_INET_Addrobject_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...
bool is_preferred_network (void) const
 Do we have a preferred local network for the target? More...
const char * preferred_network (void) const
 Return the preferred network if any. More...
- Public Member Functions inherited from TAO_Endpoint
 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_Endpointnext_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 (). More...
CORBA::ULong preferred_interfaces (TAO_ORB_Core *oc)
 TAO_SCIOP_Endpoint (const TAO_SCIOP_Endpoint &)
 Canonical copy constructor. 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_
int object_addr_set_
 Flag to indicate if the address has been resolved and set. More...
TAO::IIOP_Endpoint_Info preferred_path_
 Preferred path for this endpoint. More...
bool is_encodable_
 Is this endpoint created encodable as part of the IOR? More...


class TAO_SCIOP_Profile
class TAO_SSLIOP_Profile

Additional Inherited Members

- Protected Attributes inherited from TAO_Endpoint
TAO_SYNCH_MUTEX addr_lookup_lock_
CORBA::ULong hash_val_
CORBA::ULong const tag_
CORBA::Short priority_

Detailed Description


SCIOP-specific implementation of PP Framework Endpoint interface.

Constructor & Destructor Documentation

TAO_SCIOP_Endpoint::TAO_SCIOP_Endpoint ( void  )

Default constructor.

TAO_SCIOP_Endpoint::TAO_SCIOP_Endpoint ( const char *  host,
CORBA::UShort  port,
const ACE_INET_Addr addr,

Constructor. This is the most efficient constructor since it does not require any address resolution processing.

TAO_SCIOP_Endpoint::TAO_SCIOP_Endpoint ( const ACE_INET_Addr addr,
int  use_dotted_decimal_addresses 


TAO_SCIOP_Endpoint::TAO_SCIOP_Endpoint ( const char *  host,
CORBA::UShort  port,
CORBA::Short  priority 

Constructor. This constructor is used when decoding endpoints.

TAO_SCIOP_Endpoint::~TAO_SCIOP_Endpoint ( void  )


TAO_SCIOP_Endpoint::TAO_SCIOP_Endpoint ( const TAO_SCIOP_Endpoint rhs)

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

int TAO_SCIOP_Endpoint::addr_to_string ( char *  buffer,
size_t  length 

Implements TAO_Endpoint.

TAO_Endpoint * TAO_SCIOP_Endpoint::duplicate ( void  )

Implements TAO_Endpoint.

CORBA::ULong TAO_SCIOP_Endpoint::hash ( void  )

Return a hash value for this object.

Implements TAO_Endpoint.

const char * TAO_SCIOP_Endpoint::host ( void  ) const

Return a pointer to the host string. This object maintains ownership of this string.

const char * TAO_SCIOP_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_SCIOP_Endpoint::is_equivalent ( const TAO_Endpoint other_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.

bool TAO_SCIOP_Endpoint::is_preferred_network ( void  ) const

Do we have a preferred local network for the target?

TAO_Endpoint * TAO_SCIOP_Endpoint::next ( void  )

Implements TAO_Endpoint.

const ACE_INET_Addr & TAO_SCIOP_Endpoint::object_addr ( void  ) const

Return a reference to the <object_addr>.

void TAO_SCIOP_Endpoint::object_addr_i ( void  ) const

Helper method for object_addr ().

CORBA::UShort TAO_SCIOP_Endpoint::port ( void  ) const

Return the port number.

CORBA::UShort TAO_SCIOP_Endpoint::port ( CORBA::UShort  p)

Set the port number.

CORBA::ULong TAO_SCIOP_Endpoint::preferred_interfaces ( TAO_ORB_Core oc)

Generate preferred interfaces from the options passed in by the user.

const char * TAO_SCIOP_Endpoint::preferred_network ( void  ) const

Return the preferred network if any.

int TAO_SCIOP_Endpoint::set ( const ACE_INET_Addr addr,
int  use_dotted_decimal_addresses 

Helper method for setting INET_Addr.

Friends And Related Function Documentation

friend class TAO_SCIOP_Profile
friend class TAO_SSLIOP_Profile

Member Data Documentation

CORBA::String_var TAO_SCIOP_Endpoint::host_

String representing the host name.

bool TAO_SCIOP_Endpoint::is_encodable_

Is this endpoint created encodable as part of the IOR?

TAO_SCIOP_Endpoint* TAO_SCIOP_Endpoint::next_

SCIOP Endpoints can be strung into a list. Return the next endpoint in the list, if any.

ACE_INET_Addr TAO_SCIOP_Endpoint::object_addr_

Cached instance of <ACE_INET_Addr> for use in making invocations, etc.

int TAO_SCIOP_Endpoint::object_addr_set_

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

CORBA::UShort TAO_SCIOP_Endpoint::port_

TCP port number.

TAO::IIOP_Endpoint_Info TAO_SCIOP_Endpoint::preferred_path_

Preferred path for this endpoint.

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