TAO_COIOP_Transport Class Reference

Specialization of the base TAO_Transport class to handle the COIOP protocol. More...

#include <COIOP_Transport.h>

Inheritance diagram for TAO_COIOP_Transport:

Inheritance graph
[legend]
Collaboration diagram for TAO_COIOP_Transport:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_COIOP_Transport (TAO_COIOP_Connection_Handler *handler, TAO_ORB_Core *orb_core)
 Constructor.

 ~TAO_COIOP_Transport (void)
 Default destructor.

virtual int handle_input (TAO_Resume_Handle &rh, ACE_Time_Value *max_wait_time=0)
 Look for the documentation in Transport.h.

virtual int send_request (TAO_Stub *stub, TAO_ORB_Core *orb_core, TAO_OutputCDR &stream, int message_semantics, ACE_Time_Value *max_wait_time)
virtual int send_message (TAO_OutputCDR &stream, TAO_Stub *stub=0, int message_semantics=TAO_Transport::TAO_TWOWAY_REQUEST, ACE_Time_Value *max_time_wait=0)
virtual int messaging_init (CORBA::Octet major, CORBA::Octet minor)
 Initialising the messaging object.


Protected Member Functions

Overridden Template Methods
These are implementations of template methods declared by TAO_Transport.

virtual ACE_Event_Handlerevent_handler_i (void)
virtual TAO_Connection_Handlerconnection_handler_i (void)
virtual TAO_Pluggable_Messagingmessaging_object (void)
virtual ssize_t send (iovec *iov, int iovcnt, size_t &bytes_transferred, const ACE_Time_Value *max_wait_time)
 Write the complete Message_Block chain to the connection.

virtual ssize_t recv (char *buf, size_t len, const ACE_Time_Value *s=0)
 Read len bytes from into buf.

virtual int send_message_shared (TAO_Stub *stub, int message_semantics, const ACE_Message_Block *message_block, ACE_Time_Value *max_wait_time)
virtual int register_handler (void)

Private Attributes

TAO_COIOP_Connection_Handlerconnection_handler_
TAO_Pluggable_Messagingmessaging_object_
 Our messaging object.


Detailed Description

Specialization of the base TAO_Transport class to handle the COIOP protocol.

Definition at line 50 of file COIOP_Transport.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_COIOP_Transport::TAO_COIOP_Transport TAO_COIOP_Connection_Handler handler,
TAO_ORB_Core orb_core
 

Constructor.

Definition at line 26 of file COIOP_Transport.cpp.

References ACE_NEW, and TAO_TAG_COIOP_PROFILE.

00028   : TAO_Transport (TAO_TAG_COIOP_PROFILE,
00029                    orb_core)
00030   , connection_handler_ (handler)
00031   , messaging_object_ (0)
00032 {
00033 /*
00034  * Hook to customize the messaging object when the concrete messaging
00035  * object is known a priori. In this case, the flag is ignored.
00036  */
00037 //@@ MESSAGING_SPL_COMMENT_HOOK_START
00038 
00039   ACE_NEW (this->messaging_object_,
00040            TAO_GIOP_Message_Base (orb_core,
00041                                   this));
00042 //@@ MESSAGING_SPL_COMMENT_HOOK_END
00043 
00044 }

TAO_COIOP_Transport::~TAO_COIOP_Transport void   ) 
 

Default destructor.

Definition at line 46 of file COIOP_Transport.cpp.

00047 {
00048   delete this->messaging_object_;
00049 }


Member Function Documentation

TAO_Connection_Handler * TAO_COIOP_Transport::connection_handler_i void   )  [protected, virtual]
 

Implements TAO_Transport.

Definition at line 58 of file COIOP_Transport.cpp.

00059 {
00060   return this->connection_handler_;
00061 }

ACE_Event_Handler * TAO_COIOP_Transport::event_handler_i void   )  [protected, virtual]
 

Implements TAO_Transport.

Definition at line 52 of file COIOP_Transport.cpp.

00053 {
00054   return this->connection_handler_;
00055 }

int TAO_COIOP_Transport::handle_input TAO_Resume_Handle rh,
ACE_Time_Value max_wait_time = 0
[virtual]
 

Look for the documentation in Transport.h.

Reimplemented from TAO_Transport.

Definition at line 88 of file COIOP_Transport.cpp.

00090 {
00091   return 0;
00092 }

int TAO_COIOP_Transport::messaging_init CORBA::Octet  major,
CORBA::Octet  minor
[virtual]
 

Initialising the messaging object.

Implements TAO_Transport.

Definition at line 138 of file COIOP_Transport.cpp.

References TAO_Pluggable_Messaging::init().

00140 {
00141   this->messaging_object_->init (major, minor);
00142   return 1;
00143 }

TAO_Pluggable_Messaging * TAO_COIOP_Transport::messaging_object void   )  [protected, virtual]
 

Implements TAO_Transport.

Definition at line 64 of file COIOP_Transport.cpp.

00065 {
00066   return this->messaging_object_;
00067 }

ssize_t TAO_COIOP_Transport::recv char *  buf,
size_t  len,
const ACE_Time_Value s = 0
[protected, virtual]
 

Read len bytes from into buf.

Implements TAO_Transport.

Definition at line 82 of file COIOP_Transport.cpp.

00083 {
00084   return 0;
00085 }

int TAO_COIOP_Transport::register_handler void   )  [protected, virtual]
 

Reimplemented from TAO_Transport.

Definition at line 96 of file COIOP_Transport.cpp.

00097 {
00098   // We do never register register the handler with the reactor
00099   // as we never need to be informed about any incoming data,
00100   // assuming we only use one-ways.
00101   // If we would register and ICMP Messages would arrive, e.g
00102   // due to a not reachable server, we would get informed - as this
00103   // disturbs the general COIOP assumptions of not being
00104   // interested in any network failures, we ignore ICMP messages.
00105   return 0;
00106 }

ssize_t TAO_COIOP_Transport::send iovec *  iov,
int  iovcnt,
size_t &  bytes_transferred,
const ACE_Time_Value max_wait_time
[protected, virtual]
 

Write the complete Message_Block chain to the connection.

Implements TAO_Transport.

Definition at line 70 of file COIOP_Transport.cpp.

00074 {
00075   // We don't send data over the wire with COIOP
00076   bytes_transferred = 0;
00077 
00078   return 1;
00079 }

int TAO_COIOP_Transport::send_message TAO_OutputCDR stream,
TAO_Stub stub = 0,
int  message_semantics = TAO_Transport::TAO_TWOWAY_REQUEST,
ACE_Time_Value max_time_wait = 0
[virtual]
 

Implements TAO_Transport.

Definition at line 120 of file COIOP_Transport.cpp.

00124 {
00125   return 1;
00126 }

int TAO_COIOP_Transport::send_message_shared TAO_Stub stub,
int  message_semantics,
const ACE_Message_Block message_block,
ACE_Time_Value max_wait_time
[protected, virtual]
 

Reimplemented from TAO_Transport.

Definition at line 129 of file COIOP_Transport.cpp.

00133 {
00134   return 1;
00135 }

int TAO_COIOP_Transport::send_request TAO_Stub stub,
TAO_ORB_Core orb_core,
TAO_OutputCDR stream,
int  message_semantics,
ACE_Time_Value max_wait_time
[virtual]
 

Todo:
These methods IMHO should have more meaningful names. The names seem to indicate nothing.

Implements TAO_Transport.

Definition at line 110 of file COIOP_Transport.cpp.

00115 {
00116   return 0;
00117 }


Member Data Documentation

TAO_COIOP_Connection_Handler* TAO_COIOP_Transport::connection_handler_ [private]
 

The connection service handler used for accessing lower layer communication protocols.

Definition at line 115 of file COIOP_Transport.h.

TAO_Pluggable_Messaging* TAO_COIOP_Transport::messaging_object_ [private]
 

Our messaging object.

Definition at line 118 of file COIOP_Transport.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 16:02:31 2008 for TAO_Strategies by doxygen 1.3.6