3 #if !defined (__ACE_INLINE__)
4 #include "ace/Addr.inl"
5 #endif /* __ACE_INLINE__ */
7 #include "ace/Log_Category.h"
8 #include "ace/os_include/sys/os_socket.h"
9 #if defined (ACE_HAS_ALLOC_HOOKS)
10 # include "ace/Malloc_Base.h"
11 #endif /* ACE_HAS_ALLOC_HOOKS */
13 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
15 // Note: this object requires static construction and destruction.
17 const ACE_Addr
ACE_Addr::sap_any (AF_ANY
, -1);
19 ACE_ALLOC_HOOK_DEFINE(ACE_Addr
)
22 // Initializes instance variables. Note that 0 is an unspecified
23 // protocol family type...
25 ACE_Addr::ACE_Addr (int type
, int size
) :
32 ACE_Addr::get_addr () const
38 ACE_Addr::set_addr (const void *, int)
42 // Initializes instance variables.
45 ACE_Addr::base_set (int type
, int size
)
47 this->addr_type_
= type
;
48 this->addr_size_
= size
;
52 ACE_Addr::dump () const
54 #if defined (ACE_HAS_DUMP)
55 ACE_TRACE ("ACE_Addr::dump");
57 ACELIB_DEBUG ((LM_DEBUG
, ACE_BEGIN_DUMP
, this));
58 ACELIB_DEBUG ((LM_DEBUG
, ACE_TEXT ("addr_type_ = %d"), this->addr_type_
));
59 ACELIB_DEBUG ((LM_DEBUG
, ACE_TEXT ("\naddr_size_ = %d"), this->addr_size_
));
60 ACELIB_DEBUG ((LM_DEBUG
, ACE_END_DUMP
));
61 #endif /* ACE_HAS_DUMP */
64 ACE_END_VERSIONED_NAMESPACE_DECL