Addr.cpp

Go to the documentation of this file.
00001 // $Id: Addr.cpp 80826 2008-03-04 14:51:23Z wotte $
00002 
00003 #include "ace/Addr.h"
00004 
00005 
00006 ACE_RCSID (ace,
00007            Addr,
00008            "$Id: Addr.cpp 80826 2008-03-04 14:51:23Z wotte $")
00009 
00010 
00011 #if !defined (__ACE_INLINE__)
00012 #include "ace/Addr.inl"
00013 #endif /* __ACE_INLINE__ */
00014 
00015 #include "ace/Log_Msg.h"
00016 #include "ace/os_include/sys/os_socket.h"
00017 
00018 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00019 
00020 // Note: this object requires static construction and destruction.
00021 /* static */
00022 const ACE_Addr ACE_Addr::sap_any (AF_ANY, -1);
00023 
00024 ACE_ALLOC_HOOK_DEFINE(ACE_Addr)
00025 
00026 
00027 // Initializes instance variables.  Note that 0 is an unspecified
00028 // protocol family type...
00029 
00030 ACE_Addr::ACE_Addr (int type, int size) :
00031   addr_type_ (type),
00032   addr_size_ (size)
00033 {
00034 }
00035 
00036 ACE_Addr::~ACE_Addr (void)
00037 {
00038 }
00039 
00040 void *
00041 ACE_Addr::get_addr (void) const
00042 {
00043   return 0;
00044 }
00045 
00046 void
00047 ACE_Addr::set_addr (void *, int)
00048 {
00049 }
00050 
00051 // Initializes instance variables.
00052 
00053 void
00054 ACE_Addr::base_set (int type, int size)
00055 {
00056   this->addr_type_ = type;
00057   this->addr_size_ = size;
00058 }
00059 
00060 void
00061 ACE_Addr::dump (void) const
00062 {
00063 #if defined (ACE_HAS_DUMP)
00064   ACE_TRACE ("ACE_Addr::dump");
00065 
00066   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00067   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("addr_type_ = %d"), this->addr_type_));
00068   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\naddr_size_ = %d"), this->addr_size_));
00069   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00070 #endif /* ACE_HAS_DUMP */
00071 }
00072 
00073 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:18:38 2010 for ACE by  doxygen 1.4.7