summaryrefslogtreecommitdiff
path: root/ACE/ace/Addr.inl
blob: 1df00e9ab41d25f9b7f60d5f01487a93aaecc98d (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
// -*- C++ -*-
// Return the address of the address.

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE bool
ACE_Addr::operator == (const ACE_Addr &sap) const
{
  return (sap.addr_type_ == this->addr_type_ &&
          sap.addr_size_ == this->addr_size_   );
}

ACE_INLINE bool
ACE_Addr::operator != (const ACE_Addr &sap) const
{
  return (sap.addr_type_ != this->addr_type_ ||
          sap.addr_size_ != this->addr_size_   );
}

/// Return the size of the address.
ACE_INLINE int
ACE_Addr::get_size () const
{
  return this->addr_size_;
}

/// Sets the size of the address.
ACE_INLINE void
ACE_Addr::set_size (int size)
{
  this->addr_size_ = size;
}

/// Return the type of the address.
ACE_INLINE int
ACE_Addr::get_type () const
{
  return this->addr_type_;
}

/// Set the type of the address.
ACE_INLINE void
ACE_Addr::set_type (int type)
{
  this->addr_type_ = type;
}

ACE_INLINE unsigned long
ACE_Addr::hash () const
{
  return 0;
}

ACE_END_VERSIONED_NAMESPACE_DECL