blob: d44dee9b2fc79fa5c0d9bc76652bfa5dcc16dc33 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
// -*- C++ -*-
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE const ACE_INET_Addr &
TAO_UIPMC_Endpoint::object_addr () const
{
return this->object_addr_;
}
ACE_INLINE CORBA::UShort
TAO_UIPMC_Endpoint::port () const
{
return this->port_;
}
ACE_INLINE CORBA::UShort
TAO_UIPMC_Endpoint::port (CORBA::UShort p)
{
return this->port_ = p;
}
ACE_INLINE ACE_UINT32
TAO_UIPMC_Endpoint::uint_ip_addr () const
{
return (((ACE_UINT32)this->class_d_address_[0] << 24) |
((ACE_UINT32)this->class_d_address_[1] << 16) |
((ACE_UINT32)this->class_d_address_[2] << 8) |
((ACE_UINT32)this->class_d_address_[3]));
}
ACE_INLINE void
TAO_UIPMC_Endpoint::uint_ip_addr (ACE_UINT32 ip_addr)
{
this->class_d_address_[0] = (CORBA::Char)(ip_addr >> 24);
this->class_d_address_[1] = (CORBA::Char)((ip_addr >> 16) & 0xff);
this->class_d_address_[2] = (CORBA::Char)((ip_addr >> 8) & 0xff);
this->class_d_address_[3] = (CORBA::Char)(ip_addr & 0xff);
}
ACE_INLINE void
TAO_UIPMC_Endpoint::update_object_addr (void)
{
this->object_addr_.set (this->port_,
this->uint_ip_addr ());
}
ACE_INLINE const char*
TAO_UIPMC_Endpoint::preferred_if () const
{
return this->preferred_if_.in();
}
TAO_END_VERSIONED_NAMESPACE_DECL
|