Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_Acceptor Class Reference

Abstract Acceptor class used for pluggable transports. More...

#include <Transport_Acceptor.h>

Inheritance diagram for TAO_Acceptor:

Inheritance graph
[legend]
List of all members.

Public Methods

 TAO_Acceptor (CORBA::ULong tag)
virtual ~TAO_Acceptor (void)
 Destructor. More...

CORBA::ULong tag (void) const
 The tag, each concrete class will have a specific tag value. 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)=0
 Method to initialize acceptor for address. More...

virtual int open_default (TAO_ORB_Core *, ACE_Reactor *reactor, int version_major, int version_minor, const char *options=0)=0
virtual int close (void)=0
 Closes the acceptor. More...

virtual int create_profile (const TAO_ObjectKey &object_key, TAO_MProfile &mprofile, CORBA::Short priority)=0
virtual int is_collocated (const TAO_Endpoint *endpoint)=0
 Return 1 if the <endpoint> has the same address as the acceptor. More...

virtual CORBA::ULong endpoint_count (void)=0
virtual int object_key (IOP::TaggedProfile &profile, TAO_ObjectKey &key)=0

Private Attributes

CORBA::ULong tag_
 IOP protocol tag. More...


Detailed Description

Abstract Acceptor class used for pluggable transports.

Base class for the Acceptor bridge class.

@TODO: Need to rename the class as TAO_Transport_Acceptor.

Definition at line 46 of file Transport_Acceptor.h.


Constructor & Destructor Documentation

TAO_Acceptor::TAO_Acceptor CORBA::ULong    tag
 

Definition at line 18 of file Transport_Acceptor.cpp.

00019   : tag_ (tag)
00020 {
00021 }

TAO_Acceptor::~TAO_Acceptor void    [virtual]
 

Destructor.

Definition at line 23 of file Transport_Acceptor.cpp.

00024 {
00025 }


Member Function Documentation

virtual int TAO_Acceptor::close void    [pure virtual]
 

Closes the acceptor.

Implemented in TAO_IIOP_Acceptor.

virtual int TAO_Acceptor::create_profile const TAO_ObjectKey   object_key,
TAO_MProfile   mprofile,
CORBA::Short    priority
[pure virtual]
 

Create the corresponding profile for this endpoint. If share_profile is set to true, the pluggable protocol implementation should try to add the endpoint to a profile in the mprofile that is of the same type. Currently, this is used when RT CORBA is enabled.

Implemented in TAO_IIOP_Acceptor.

virtual CORBA::ULong TAO_Acceptor::endpoint_count void    [pure virtual]
 

Returns the number of endpoints this acceptor is listening on. This is used for determining how many profiles will be generated for this acceptor.

Implemented in TAO_IIOP_Acceptor.

virtual int TAO_Acceptor::is_collocated const TAO_Endpoint   endpoint [pure virtual]
 

Return 1 if the <endpoint> has the same address as the acceptor.

Implemented in TAO_IIOP_Acceptor.

virtual int TAO_Acceptor::object_key IOP::TaggedProfile   profile,
TAO_ObjectKey   key
[pure virtual]
 

This method fetches the <key> from the <profile>. Protocols that are pluggable can send data that are specific in the <profile_data> field encapsulated as a octet stream. This method allows those protocols to get the object key from the encapsulation.

Implemented in TAO_IIOP_Acceptor.

Referenced by TAO_Tagged_Profile::extract_object_key.

virtual int TAO_Acceptor::open TAO_ORB_Core   orb_core,
ACE_Reactor   reactor,
int    version_major,
int    version_minor,
const char *    address,
const char *    options = 0
[pure virtual]
 

Method to initialize acceptor for address.

Implemented in TAO_IIOP_Acceptor.

Referenced by TAO_Acceptor_Registry::open_i.

virtual int TAO_Acceptor::open_default TAO_ORB_Core  ,
ACE_Reactor   reactor,
int    version_major,
int    version_minor,
const char *    options = 0
[pure virtual]
 

Open an acceptor with the given protocol version on a default endpoint

Implemented in TAO_IIOP_Acceptor.

Referenced by TAO_Acceptor_Registry::open_default.

ACE_INLINE CORBA::ULong TAO_Acceptor::tag void    const
 

The tag, each concrete class will have a specific tag value.

Definition at line 4 of file Transport_Acceptor.inl.

References tag_.

00005 {
00006   return this->tag_;
00007 }


Member Data Documentation

CORBA::ULong TAO_Acceptor::tag_ [private]
 

IOP protocol tag.

Definition at line 113 of file Transport_Acceptor.h.

Referenced by tag.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:02:41 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002