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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
// -*- C++ -*-
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO
//
// = FILENAME
// Pluggable_Messaging.h
//
// = DESCRIPTION
// Interface for the TAO pluggable messaging framework.
//
// = AUTHOR
// Balachandran Natarajan <bala@cs.wustl.edu>
//
// ============================================================================
#ifndef _TAO_PLUGGABLE_MESSAGE_H_
#define _TAO_PLUGGABLE_MESSAGE_H_
#include "tao/corbafwd.h"
#include "tao/Pluggable.h"
class TAO_Export TAO_Pluggable_Message_Factory
{
// = TITLE
// Generic definitions for the new Pluggable Messaging class.
//
// = DESCRIPTION
//
public:
TAO_Pluggable_Message_Factory (void);
// Ctor
virtual ~TAO_Pluggable_Message_Factory (void);
// Dtor
/**********************************************************/
// Methods related to the messages that would be sent by the client
/**********************************************************/
virtual CORBA::Boolean write_request_header (const IOP::ServiceContextList& svc_ctx,
CORBA::ULong request_id,
CORBA::Octet response_flags,
TAO_Stub *stub,
const CORBA::Short address_disposition,
const char* opname,
TAO_OutputCDR &msg) = 0;
// Write the GIOP request header.
virtual CORBA::Boolean write_locate_request_header (CORBA::ULong request_id,
TAO_Stub *stub,
const CORBA::Short address_disposition,
TAO_OutputCDR &msg) = 0;
// Write the GIOP locate request header.
virtual int send_message (TAO_Transport *transport,
TAO_OutputCDR &stream,
ACE_Time_Value *max_wait_time = 0,
TAO_Stub *stub = 0) = 0;
// Send message, returns TRUE if success, else FALSE.
/**********************************************************/
// Methods related to the messages that would be sent by the server.
/**********************************************************/
//virtual CORBA::Boolean start_message (const TAO_GIOP_Version &version,
// TAO_GIOP_Message_Factory::Message_Type t,
// TAO_OutputCDR &msg);
// Build the header for a message of type <t> into stream
// <msg>. Other GIOP related protocols that do not use this can
// override this. Like GIOP_lite
};
#if defined (__ACE_INLINE__)
# include "tao/Pluggable_Messaging.i"
#endif /* __ACE_INLINE__ */
#endif /*_TAO_PLUGGABLE_MESSAGE_H_*/
|