TAO_PortableGroup  2.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
TAO_UIPMC_Acceptor Class Reference

TAO_UIPMC_Acceptor. More...

#include <UIPMC_Acceptor.h>

Inheritance diagram for TAO_UIPMC_Acceptor:
Inheritance graph
Collaboration diagram for TAO_UIPMC_Acceptor:
Collaboration graph

Public Member Functions

 TAO_UIPMC_Acceptor (bool listen_on_all_ifs, const char *listener_interfaces)
 Constructor. More...
 ~TAO_UIPMC_Acceptor (void)
 Destructor. More...
const ACE_INET_Addraddress (void) const
const ACE_INET_Addrendpoints (void)
 Returns the array of endpoints in this acceptor. More...
virtual int open (TAO_ORB_Core *orb_core, ACE_Reactor *reactor, int version_major, int version_minor, const char *address, const char *options=0)
virtual int open_default (TAO_ORB_Core *orb_core, ACE_Reactor *reactor, int version_major, int version_minor, const char *options=0)
virtual int close (void)
virtual int create_profile (const TAO::ObjectKey &object_key, TAO_MProfile &mprofile, CORBA::Short priority)
virtual int is_collocated (const TAO_Endpoint *endpoint)
virtual CORBA::ULong endpoint_count (void)
virtual int object_key (IOP::TaggedProfile &profile, TAO::ObjectKey &key)
int hostname (TAO_ORB_Core *orb_core, ACE_INET_Addr &addr, char *&host, const char *specified_hostname=0)
int dotted_decimal_address (ACE_INET_Addr &addr, char *&host)
- Public Member Functions inherited from TAO_Acceptor
 TAO_Acceptor (CORBA::ULong tag)
virtual ~TAO_Acceptor (void)
CORBA::ULong tag (void) const
void set_error_retry_delay (time_t delay)
int handle_accept_error (ACE_Event_Handler *base_acceptor)
int handle_expiration (ACE_Event_Handler *base_acceptor)

Protected Member Functions

virtual int open_i (const ACE_INET_Addr &addr, ACE_Reactor *reactor)
virtual int parse_options (const char *options)
 Parse protocol specific options. More...

Protected Attributes

char ** hosts_
CORBA::ULong endpoint_count_
TAO_GIOP_Message_Version version_
 ORB Core. More...

Private Attributes

bool listen_on_all_
ACE_CString listener_interfaces_

Detailed Description


The UIPMC-specific bridge class for the concrete acceptor.

Constructor & Destructor Documentation

TAO_UIPMC_Acceptor::TAO_UIPMC_Acceptor ( bool  listen_on_all_ifs,
const char *  listener_interfaces 


TAO_UIPMC_Acceptor::~TAO_UIPMC_Acceptor ( void  )


Member Function Documentation

const ACE_INET_Addr & TAO_UIPMC_Acceptor::address ( void  ) const

@ Helper method for the implementation repository, should go away

int TAO_UIPMC_Acceptor::close ( void  )

Implements TAO_Acceptor.

int TAO_UIPMC_Acceptor::create_profile ( const TAO::ObjectKey object_key,
TAO_MProfile mprofile,
CORBA::Short  priority 

Implements TAO_Acceptor.

int TAO_UIPMC_Acceptor::dotted_decimal_address ( ACE_INET_Addr addr,
char *&  host 

Set the host name for the given address using the dotted decimal format.

CORBA::ULong TAO_UIPMC_Acceptor::endpoint_count ( void  )

Implements TAO_Acceptor.

const ACE_INET_Addr * TAO_UIPMC_Acceptor::endpoints ( void  )

Returns the array of endpoints in this acceptor.

int TAO_UIPMC_Acceptor::hostname ( TAO_ORB_Core orb_core,
ACE_INET_Addr addr,
char *&  host,
const char *  specified_hostname = 0 

Set the host name for the given addr. A hostname may be forced by using specified_hostname. This is useful if the given address corresponds to more than one hostname and the desired one cannot be determined in any other way.

int TAO_UIPMC_Acceptor::is_collocated ( const TAO_Endpoint endpoint)

Implements TAO_Acceptor.

int TAO_UIPMC_Acceptor::object_key ( IOP::TaggedProfile &  profile,
TAO::ObjectKey key 

Implements TAO_Acceptor.

int TAO_UIPMC_Acceptor::open ( TAO_ORB_Core orb_core,
ACE_Reactor reactor,
int  version_major,
int  version_minor,
const char *  address,
const char *  options = 0 

The TAO_Acceptor methods, check the documentation in Pluggable.h for details.

Implements TAO_Acceptor.

int TAO_UIPMC_Acceptor::open_default ( TAO_ORB_Core orb_core,
ACE_Reactor reactor,
int  version_major,
int  version_minor,
const char *  options = 0 

Implements TAO_Acceptor.

int TAO_UIPMC_Acceptor::open_i ( const ACE_INET_Addr addr,
ACE_Reactor reactor 

Implement the common part of the open*() methods. This method is virtual to allow a derived class implementation to be invoked instead.

int TAO_UIPMC_Acceptor::parse_options ( const char *  options)

Parse protocol specific options.

Member Data Documentation

ACE_INET_Addr* TAO_UIPMC_Acceptor::addrs_

Array of ACE_INET_Addr instances, each one corresponding to a given network interface.

CORBA::ULong TAO_UIPMC_Acceptor::endpoint_count_

The number of host names cached in the hosts_ array (equivalent to the number of endpoints opened by this Acceptor).

char** TAO_UIPMC_Acceptor::hosts_

Cache the information about the endpoints serviced by this acceptor. There may in fact be multiple hostnames for this endpoint. For example, if the IP address is INADDR_ANY ( then there will be possibly a different hostname for each interface.

bool TAO_UIPMC_Acceptor::listen_on_all_
ACE_CString TAO_UIPMC_Acceptor::listener_interfaces_
TAO_ORB_Core* TAO_UIPMC_Acceptor::orb_core_

ORB Core.

TAO_GIOP_Message_Version TAO_UIPMC_Acceptor::version_

The GIOP version for this endpoint @ Theoretically this shouldn't be here!! We need to look at a way to move this out

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