blob: fe038e33c639d33164a0dea42c5f0bcdd3b39573 (
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
|
#include "tao/Transport_Descriptor_Interface.h"
#if !defined (__ACE_INLINE__)
# include "tao/Transport_Descriptor_Interface.inl"
#endif /* __ACE_INLINE__ */
#include "tao/Endpoint.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Transport_Descriptor_Interface::~TAO_Transport_Descriptor_Interface (void)
{
if (this->release_)
{
delete this->endpoint_;
}
}
CORBA::Boolean
TAO_Transport_Descriptor_Interface::reset_endpoint (TAO_Endpoint *ep)
{
// calling on a dynamically allocation descriptor is not allowed.
if (this->release_)
return false;
for (TAO_Endpoint *ptr = this->endpoint_; ptr != 0; ptr = ptr->next())
if (ptr == ep)
{
this->endpoint_ = ep;
return true;
}
return false;
}
TAO_END_VERSIONED_NAMESPACE_DECL
|