TAO 4.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TAO::Remote_Invocation Class Reference

Base class for remote invocations. More...

#include <Remote_Invocation.h>

Inheritance diagram for TAO::Remote_Invocation:
Inheritance graph
[legend]
Collaboration diagram for TAO::Remote_Invocation:
Collaboration graph
[legend]

Public Member Functions

 Remote_Invocation (CORBA::Object_ptr otarget, Profile_Transport_Resolver &resolver, TAO_Operation_Details &detail, bool response_expected)
 
void _tao_byte_order (int byte_order)
 
int _tao_byte_order ()
 
- Public Member Functions inherited from TAO::Invocation_Base
virtual ~Invocation_Base ()
 
TAO_Stubstub () const
 Accessor and mutator methods.
 
CORBA::Object_ptr forwarded_reference ()
 
void forwarded_reference (CORBA::Object_ptr o)
 
TAO_Service_Contextrequest_service_context ()
 Accessors for the service context list.
 
TAO_Service_Contextreply_service_context ()
 
CORBA::Object_ptr steal_forwarded_reference ()
 Return the forwarded object location by loosing ownership.
 
CORBA::Object_ptr effective_target () const
 Return the effective target of the invocation.
 
CORBA::Object_ptr target () const
 Return the target object.
 
CORBA::Boolean response_expected () const
 Does this invocation return a response?
 
GIOP::ReplyStatusType reply_status () const
 Accessor of reply_status of the invocation.
 
void reply_status (GIOP::ReplyStatusType s)
 Mutator of reply_status of the invocation.
 
TAO_Operation_Detailsoperation_details ()
 The operaton details of the invocation.
 

Protected Member Functions

void init_target_spec (TAO_Target_Specification &spec, TAO_OutputCDR &output)
 Initialize the spec.
 
void write_header (TAO_OutputCDR &out_stream)
 Write the GIOP header into the stream.
 
void marshal_data (TAO_OutputCDR &cdr)
 Marshal the arguments into the stream.
 
Invocation_Status send_message (TAO_OutputCDR &cdr, TAO_Message_Semantics message_semantics, ACE_Time_Value *max_wait_time)
 Write the message onto the socket.
 
- Protected Member Functions inherited from TAO::Invocation_Base
 Invocation_Base (CORBA::Object_ptr otarget, CORBA::Object_ptr target, TAO_Stub *stub, TAO_Operation_Details &op, bool response_expected, bool request_is_remote)
 

Protected Attributes

Profile_Transport_Resolverresolver_
 Our resolver.
 
int byte_order_
 Intended byte order for message output stream.
 
- Protected Attributes inherited from TAO::Invocation_Base
TAO_Operation_Detailsdetails_
 The operation details on which we are operating on.
 
CORBA::Object_var forwarded_to_
 Forwarded object reference.
 
bool response_expected_
 Is response expected?
 
GIOP::ReplyStatusType reply_status_
 A GIOP reply status of the invocation.
 

Detailed Description

Base class for remote invocations.

This class encapsulates some of the common functionalities used by synchronous, asynchronous, DII and DSI invocations.

Constructor & Destructor Documentation

◆ Remote_Invocation()

TAO::Remote_Invocation::Remote_Invocation ( CORBA::Object_ptr otarget,
Profile_Transport_Resolver & resolver,
TAO_Operation_Details & detail,
bool response_expected )
Parameters
otargetThe original target on which this invocation was started. This is there to be passed up to its parent class.
resolverThe profile and transport holder.
detailPperation details of the invocation on the target
response_expectedFlag to indicate whether the operation encapsulated by op returns a response or not.

Member Function Documentation

◆ _tao_byte_order() [1/2]

int TAO::Remote_Invocation::_tao_byte_order ( )

Get the intended byte order for the message output stream. In case of gateway messages this could divert from the native byte order.

◆ _tao_byte_order() [2/2]

void TAO::Remote_Invocation::_tao_byte_order ( int byte_order)
Parameters
byte_orderThe intended byte order for the message output stream. For use in message gateways that forward messages from sources with different byte order than the native order.

◆ init_target_spec()

void TAO::Remote_Invocation::init_target_spec ( TAO_Target_Specification & spec,
TAO_OutputCDR & output )
protected

Initialize the spec.

◆ marshal_data()

void TAO::Remote_Invocation::marshal_data ( TAO_OutputCDR & cdr)
protected

Marshal the arguments into the stream.

◆ send_message()

Invocation_Status TAO::Remote_Invocation::send_message ( TAO_OutputCDR & cdr,
TAO_Message_Semantics message_semantics,
ACE_Time_Value * max_wait_time )
protected

Write the message onto the socket.

◆ write_header()

void TAO::Remote_Invocation::write_header ( TAO_OutputCDR & out_stream)
protected

Write the GIOP header into the stream.

Member Data Documentation

◆ byte_order_

int TAO::Remote_Invocation::byte_order_
protected

Intended byte order for message output stream.

◆ resolver_

Profile_Transport_Resolver& TAO::Remote_Invocation::resolver_
protected

Our resolver.


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