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

TAO_Pluggable_Messaging Class Reference

Generic definitions Messaging class. More...

#include <Pluggable_Messaging.h>

Inheritance diagram for TAO_Pluggable_Messaging:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~TAO_Pluggable_Messaging (void)
 Dtor. More...

virtual int generate_request_header (TAO_Operation_Details &op, TAO_Target_Specification &spec, TAO_OutputCDR &cdr)=0
 Write the RequestHeader in to the <cdr> stream. The underlying implementation of the mesaging should do the right thing. More...

virtual int generate_locate_request_header (TAO_Operation_Details &op, TAO_Target_Specification &spec, TAO_OutputCDR &cdr)=0
 Write the RequestHeader in to the <cdr> stream. More...

virtual int generate_reply_header (TAO_OutputCDR &cdr, TAO_Pluggable_Reply_Params_Base &params)=0
virtual int generate_locate_reply_header (TAO_OutputCDR &cdr, TAO_Pluggable_Reply_Params_Base &params)=0
virtual int read_message (TAO_Transport *transport, int block=0, ACE_Time_Value *max_wait_time=0)=0
virtual int format_message (TAO_OutputCDR &cdr)=0
 Format the message in the <cdr>. May not be needed in general. More...

virtual void init (CORBA::Octet major, CORBA::Octet minor)=0
 Do any initialisations that may be needed. More...

virtual int process_request_message (TAO_Transport *transport, TAO_Queued_Data *qd)=0
 Parse the request message, make an upcall and send the reply back to the "request initiator". More...


Detailed Description

Generic definitions Messaging class.

This interface tries to define generic methods that could be different messaging protocols

Definition at line 57 of file Pluggable_Messaging.h.


Constructor & Destructor Documentation

TAO_Pluggable_Messaging::~TAO_Pluggable_Messaging void    [virtual]
 

Dtor.

Definition at line 13 of file Pluggable_Messaging.cpp.

00014 {
00015 
00016 }


Member Function Documentation

virtual int TAO_Pluggable_Messaging::format_message TAO_OutputCDR   cdr [pure virtual]
 

Format the message in the <cdr>. May not be needed in general.

Implemented in TAO_GIOP_Message_Base.

Referenced by TAO_IIOP_Transport::send_message.

virtual int TAO_Pluggable_Messaging::generate_locate_reply_header TAO_OutputCDR   cdr,
TAO_Pluggable_Reply_Params_Base   params
[pure virtual]
 

Write the locate reply header The locate reply header is a part of any messaging protocol. The messaging protocol implementation would implement the way the locate reply header is written.

virtual int TAO_Pluggable_Messaging::generate_locate_request_header TAO_Operation_Details   op,
TAO_Target_Specification   spec,
TAO_OutputCDR   cdr
[pure virtual]
 

Write the RequestHeader in to the <cdr> stream.

Implemented in TAO_GIOP_Message_Base.

Referenced by TAO_Transport::generate_locate_request.

virtual int TAO_Pluggable_Messaging::generate_reply_header TAO_OutputCDR   cdr,
TAO_Pluggable_Reply_Params_Base   params
[pure virtual]
 

Write the reply header The reply header is a part of any messaging protocol. The messaging protocol implementation would implement the way the reply header is written.

Implemented in TAO_GIOP_Message_Base.

Referenced by TAO_ServerRequest::init_reply, and TAO_ServerRequest::send_no_exception_reply.

virtual int TAO_Pluggable_Messaging::generate_request_header TAO_Operation_Details   op,
TAO_Target_Specification   spec,
TAO_OutputCDR   cdr
[pure virtual]
 

Write the RequestHeader in to the <cdr> stream. The underlying implementation of the mesaging should do the right thing.

Implemented in TAO_GIOP_Message_Base.

Referenced by TAO_Transport::generate_request_header.

virtual void TAO_Pluggable_Messaging::init CORBA::Octet    major,
CORBA::Octet    minor
[pure virtual]
 

Do any initialisations that may be needed.

Implemented in TAO_GIOP_Message_Base.

Referenced by TAO_IIOP_Transport::messaging_init.

virtual int TAO_Pluggable_Messaging::process_request_message TAO_Transport   transport,
TAO_Queued_Data   qd
[pure virtual]
 

Parse the request message, make an upcall and send the reply back to the "request initiator".

Implemented in TAO_GIOP_Message_Base.

Referenced by TAO_Transport::process_parsed_messages.

virtual int TAO_Pluggable_Messaging::read_message TAO_Transport   transport,
int    block = 0,
ACE_Time_Value   max_wait_time = 0
[pure virtual]
 

This method reads the message on the connection. Returns 0 when there is short read on the connection. Returns 1 when the full message is read and handled. Returns -1 on errors. If <block> is 1, then reply is read in a blocking manner. <bytes> indicates the number of bytes that needs to be read from the connection.

Implemented in TAO_GIOP_Message_Base.


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