TAO_Strategies 3.1.4
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
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]

Public Member Functions

 TAO_DIOP_Endpoint ()
 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 ()=default
 Destructor.
 
- Public Member Functions inherited from TAO_Endpoint
 TAO_Endpoint (CORBA::ULong tag, CORBA::Short priority=TAO_INVALID_PRIORITY)
 
virtual ~TAO_Endpoint ()=default
 
CORBA::ULong tag () const
 
void priority (CORBA::Short priority)
 
CORBA::Short priority () const
 
virtual TAO_Endpointnext_filtered (TAO_ORB_Core *, TAO_Endpoint *root)
 

Friends

class TAO_DIOP_Profile
 
class TAO_SSLIOP_Profile
 

TAO_Endpoint Methods

Please check the documentation in Endpoint.h for details.

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_
 
virtual TAO_Endpointnext ()
 String representing the host name.
 
virtual int addr_to_string (char *buffer, size_t length)
 String representing the host name.
 
virtual TAO_Endpointduplicate ()
 String representing the host name.
 
CORBA::Boolean is_equivalent (const TAO_Endpoint *other_endpoint)
 
CORBA::ULong hash ()
 Return a hash value for this object.
 
const ACE_INET_Addrobject_addr () const
 Return a reference to the <object_addr>.
 
const char * host () const
 
const char * host (const char *h)
 
CORBA::UShort port () const
 Return the port number.
 
CORBA::UShort port (CORBA::UShort p)
 Set the port number.
 
int set (const ACE_INET_Addr &addr, int use_dotted_decimal_addresses)
 Helper method for setting INET_Addr.
 
void object_addr_i () const
 Helper method for object_addr () call.
 

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

TAO_DIOP_Endpoint.

DIOP-specific implementation of PP Framework Endpoint interface.

Constructor & Destructor Documentation

◆ TAO_DIOP_Endpoint() [1/4]

TAO_DIOP_Endpoint::TAO_DIOP_Endpoint ( )

Default constructor.

◆ TAO_DIOP_Endpoint() [2/4]

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() [3/4]

TAO_DIOP_Endpoint::TAO_DIOP_Endpoint ( const ACE_INET_Addr & addr,
int use_dotted_decimal_addresses )

Constructor.

◆ TAO_DIOP_Endpoint() [4/4]

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::~TAO_DIOP_Endpoint ( )
default

Destructor.

Member Function Documentation

◆ addr_to_string()

int TAO_DIOP_Endpoint::addr_to_string ( char * buffer,
size_t length )
virtual

String representing the host name.

Implements TAO_Endpoint.

◆ duplicate()

TAO_Endpoint * TAO_DIOP_Endpoint::duplicate ( )
virtual

String representing the host name.

Implements TAO_Endpoint.

◆ hash()

CORBA::ULong TAO_DIOP_Endpoint::hash ( )
virtual

Return a hash value for this object.

Implements TAO_Endpoint.

◆ host() [1/2]

const char * TAO_DIOP_Endpoint::host ( ) const
inline

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

◆ host() [2/2]

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.

◆ is_equivalent()

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.

◆ next()

TAO_Endpoint * TAO_DIOP_Endpoint::next ( )
virtual

String representing the host name.

Implements TAO_Endpoint.

◆ object_addr()

const ACE_INET_Addr & TAO_DIOP_Endpoint::object_addr ( ) const

Return a reference to the <object_addr>.

◆ object_addr_i()

void TAO_DIOP_Endpoint::object_addr_i ( ) const
private

Helper method for object_addr () call.

◆ port() [1/2]

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

Return the port number.

◆ port() [2/2]

CORBA::UShort TAO_DIOP_Endpoint::port ( CORBA::UShort p)
inline

Set the port number.

◆ set()

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 Symbol Documentation

◆ TAO_DIOP_Profile

friend class TAO_DIOP_Profile
friend

◆ TAO_SSLIOP_Profile

friend class TAO_SSLIOP_Profile
friend

Member Data Documentation

◆ host_

CORBA::String_var TAO_DIOP_Endpoint::host_
private

String representing the host name.

◆ next_

TAO_DIOP_Endpoint* TAO_DIOP_Endpoint::next_
private

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

◆ object_addr_

ACE_INET_Addr TAO_DIOP_Endpoint::object_addr_
mutableprivate

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

◆ object_addr_set_

bool TAO_DIOP_Endpoint::object_addr_set_
mutableprivate

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

◆ port_

CORBA::UShort TAO_DIOP_Endpoint::port_
private

TCP port number.


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