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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
#include "tao/Service_Callbacks.h"
#include "tao/PolicyC.h"
#if !defined (__ACE_INLINE__)
# include "tao/Service_Callbacks.i"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID (tao,
Service_Callbacks,
"$Id$")
TAO_Service_Callbacks::~TAO_Service_Callbacks (void)
{
}
CORBA::Boolean
TAO_Service_Callbacks::select_profile (TAO_MProfile * /*mprofile*/,
TAO_Profile *& /*pfile*/)
{
return 0;
}
CORBA::Boolean
TAO_Service_Callbacks::reselect_profile (TAO_Stub * /*stub*/,
TAO_Profile *& /*pfile*/)
{
return 0;
}
CORBA::Boolean
TAO_Service_Callbacks::object_is_nil (CORBA::Object_ptr /* obj */)
{
// We shouldn't be here at all. But in case if we are here,
// something is wrong. So, we send a true for a is_nil () call
return 1;
}
void
TAO_Service_Callbacks::reset_profile_flags (void)
{
return;
}
void
TAO_Service_Callbacks::service_context_list (
TAO_Stub *& /*stub*/ ,
IOP::ServiceContextList & /*service_list*/,
CORBA::Boolean
ACE_ENV_ARG_DECL_NOT_USED)
{
return;
}
int
TAO_Service_Callbacks::raise_comm_failure (
TAO_GIOP_Invocation * /*invoke*/,
TAO_Profile * /*profile*/
ACE_ENV_ARG_DECL)
{
ACE_THROW_RETURN (CORBA::COMM_FAILURE (
CORBA::SystemException::_tao_minor_code (
TAO_INVOCATION_RECV_REQUEST_MINOR_CODE,
errno),
CORBA::COMPLETED_MAYBE),
2);
}
int
TAO_Service_Callbacks::raise_transient_failure (
TAO_GIOP_Invocation * /*invoke*/,
TAO_Profile * /*profile*/
ACE_ENV_ARG_DECL)
{
ACE_THROW_RETURN (CORBA::TRANSIENT (
CORBA::SystemException::_tao_minor_code (
TAO_INVOCATION_RECV_REQUEST_MINOR_CODE,
errno),
CORBA::COMPLETED_MAYBE),
2);
}
void
TAO_Service_Callbacks::service_log_msg_rcv (
TAO_Message_State_Factory & /*state*/)
{
return;
}
void
TAO_Service_Callbacks::service_log_msg_pre_upcall (
TAO_ServerRequest & /*req*/)
{
return;
}
void
TAO_Service_Callbacks::service_log_msg_post_upcall (
TAO_ServerRequest & /*req*/)
{
return;
}
|