Public Member Functions | Protected Member Functions | Private Member Functions

TAO::Transport::IIOP_Current_Impl Class Reference

Implementation of the TAO::Transport::IIOPCurrent interface. More...

#include <IIOP_Current_Impl.h>

Inheritance diagram for TAO::Transport::IIOP_Current_Impl:
Inheritance graph
[legend]
Collaboration diagram for TAO::Transport::IIOP_Current_Impl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IIOP_Current_Impl (TAO_ORB_Core *core, size_t tss_slot_id)
 Constructor.

virtual ::CORBA::Long id (void)
virtual ::SSLIOP::Current_ptr ssliop_current (void)
virtual ::CORBA::Long remote_port (void)
virtual char * remote_host (void)
virtual ::CORBA::Long local_port (void)
virtual char * local_host (void)

Protected Member Functions

virtual ~IIOP_Current_Impl (void)
 Destructor.

Private Member Functions

TAO_IIOP_Connection_Handlerhandler (void)

 IIOP_Current_Impl (const IIOP_Current_Impl &)
void operator= (const IIOP_Current_Impl &)

Detailed Description

Implementation of the TAO::Transport::IIOPCurrent interface.

IIOP_Current_Impl is useful for obtaining information about the IIOP Transport, associated with the calling thread.

Definition at line 46 of file IIOP_Current_Impl.h.


Constructor & Destructor Documentation

TAO::Transport::IIOP_Current_Impl::IIOP_Current_Impl ( TAO_ORB_Core core,
size_t  tss_slot_id 
)

Constructor.

Ctor.

Definition at line 48 of file IIOP_Current_Impl.cpp.

TAO::Transport::IIOP_Current_Impl::~IIOP_Current_Impl ( void   )  [protected, virtual]

Destructor.

Dtor.

Protected destructor to enforce the fact this class is reference counted, and should not be destroyed using delete() by anything other than the reference counting mechanism.

Definition at line 56 of file IIOP_Current_Impl.cpp.

      : Current_Impl (core, tss_slot_id)
    {
    }

TAO::Transport::IIOP_Current_Impl::IIOP_Current_Impl ( const IIOP_Current_Impl  )  [private]

Prevent copying through the copy constructor and assignment operator.


Member Function Documentation

TAO_IIOP_Connection_Handler * TAO::Transport::IIOP_Current_Impl::handler ( void   )  [private]

Returns the IIOP connection handler associated with the Transport. Will throw NoContext if the (selected) transport () == 0, or if transport->connection_handler () == 0. Will throw NoContext, if no transport has been selected yet.

Obtains the IIOP_Connection_Handler associated with the Transport. Will throw NoContext if the (selected) transport () == 0, or if transport->connection_handler () == 0. Will throw NoContext, if no transport has been selected yet.

Definition at line 21 of file IIOP_Current_Impl.cpp.

    {
#if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0)
      const TAO_Transport* t = this->transport ();
      if (t == 0)
        throw NoContext ();

      TAO_Connection_Handler *ch = const_cast<TAO_Transport*>(t)->connection_handler ();
      if (ch == 0)
        throw NoContext ();

      // Make sure that this connection handler is for IIOP.  This
      // implementation is not intended to operate under SSLIOP.
      TAO_IIOP_Connection_Handler* iiop_ch =
        dynamic_cast <TAO_IIOP_Connection_Handler*> (ch);
      if (iiop_ch == 0)

CORBA::Long TAO::Transport::IIOP_Current_Impl::id ( void   )  [virtual]

These are methods exposed by the PortableInterceptor::Current interface.

Reimplemented from TAO::Transport::Current_Impl.

Definition at line 61 of file IIOP_Current_Impl.cpp.

    {
    }

    CORBA::Long
    IIOP_Current_Impl::id (void)
    {
#if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0)

char * TAO::Transport::IIOP_Current_Impl::local_host ( void   )  [virtual]

Definition at line 128 of file IIOP_Current_Impl.cpp.

    {
#if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0)
      TAO_IIOP_Connection_Handler *iiopch =
        this->handler ();

      ACE_INET_Addr a;

CORBA::Long TAO::Transport::IIOP_Current_Impl::local_port ( void   ) 

Definition at line 112 of file IIOP_Current_Impl.cpp.

    {
#if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0)
      TAO_IIOP_Connection_Handler *iiopch =
        this->handler ();

      ACE_INET_Addr a;

void TAO::Transport::IIOP_Current_Impl::operator= ( const IIOP_Current_Impl  )  [private]

Prevent copying through the copy constructor and assignment operator.

char * TAO::Transport::IIOP_Current_Impl::remote_host ( void   )  [virtual]

Definition at line 96 of file IIOP_Current_Impl.cpp.

    {
#if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0)
      TAO_IIOP_Connection_Handler *iiopch =
        this->handler ();

      ACE_INET_Addr a;

CORBA::Long TAO::Transport::IIOP_Current_Impl::remote_port ( void   ) 

Definition at line 80 of file IIOP_Current_Impl.cpp.

    {
        throw ::CORBA::NO_IMPLEMENT ();
    }


    CORBA::Long
    IIOP_Current_Impl::remote_port (void)
    {
#if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0)
      TAO_IIOP_Connection_Handler *iiopch =
        this->handler ();

      ACE_INET_Addr a;

SSLIOP::Current_ptr TAO::Transport::IIOP_Current_Impl::ssliop_current ( void   ) 

Definition at line 73 of file IIOP_Current_Impl.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines