Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Addr.cpp
blob0d4937631749737a8f9d16bf376104a6b6f62fd2
1 #include "ace/Addr.h"
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.
16 /* static */
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) :
26 addr_type_ (type),
27 addr_size_ (size)
31 void *
32 ACE_Addr::get_addr () const
34 return 0;
37 void
38 ACE_Addr::set_addr (const void *, int)
42 // Initializes instance variables.
44 void
45 ACE_Addr::base_set (int type, int size)
47 this->addr_type_ = type;
48 this->addr_size_ = size;
51 void
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