summaryrefslogtreecommitdiff
path: root/TAO/tao/Asynch_Invocation.i
blob: f0ee0f78404d93af97321e76c9d666564ba0cfdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// This may look like C, but it's really -*- C++ -*-
//
// $Id$
//

ACE_INLINE
TAO_GIOP_Twoway_Asynch_Invocation::
TAO_GIOP_Twoway_Asynch_Invocation (TAO_Stub *stub,
                                   const char *operation,
                                   TAO_ORB_Core *orb_core,
                                   const TAO_Reply_Handler_Skeleton &reply_handler_skel,
                                   Messaging::ReplyHandler_ptr reply_handler_ptr)
  : TAO_GIOP_Invocation (stub, operation, orb_core),
    message_state_ (0),
    rd_ (0)
{
  // Make a new message state.
  ACE_NEW (message_state_,
           TAO_GIOP_Message_State (orb_core));
  
  // New Reply Dispatcher.
  ACE_NEW (rd_,
           TAO_Asynch_Reply_Dispatcher (message_state_,
                                        reply_handler_skel,
                                        reply_handler_ptr));
}

ACE_INLINE TAO_InputCDR &
TAO_GIOP_Twoway_Asynch_Invocation::inp_stream (void)
{
  return this->message_state_->cdr;
}

ACE_INLINE void
TAO_GIOP_Twoway_Asynch_Invocation::get_value (CORBA::TypeCode_ptr tc,
                                              void *value,
                                              CORBA::Environment &ACE_TRY_ENV)
{
  (void) this->inp_stream ().decode (tc, value, 0, ACE_TRY_ENV);
}