blob: df3976860d68e6efcb96625bf14e19900826c3ba (
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
|
//$Id$
#include "tao/Base_Connection_Property.h"
#if !defined (__ACE_INLINE__)
# include "tao/Base_Connection_Property.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(tao, Base_Connection_Property, "$Id$")
TAO_Base_Connection_Property::~TAO_Base_Connection_Property (void)
{
if (endpoint_flag_)
delete this->endpoint_;
}
TAO_Base_Connection_Property *
TAO_Base_Connection_Property::duplicate (void)
{
// Get a copy of the underlying endpoint
TAO_Endpoint *endpt = this->endpoint_->duplicate ();
// Construct a copy of our class
TAO_Base_Connection_Property *prop = 0;
ACE_NEW_RETURN (prop,
TAO_Base_Connection_Property (endpt,
1),
0);
return prop;
}
|