Addr.cpp

Go to the documentation of this file.
00001 // Addr.cpp,v 4.20 2005/10/28 16:14:51 ossama Exp
00002 
00003 #include "ace/Addr.h"
00004 
00005 
00006 ACE_RCSID (ace,
00007            Addr,
00008            "Addr.cpp,v 4.20 2005/10/28 16:14:51 ossama Exp")
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 {
00032   this->base_set (type, size);
00033 }
00034 
00035 ACE_Addr::~ACE_Addr (void)
00036 {
00037 }
00038 
00039 void *
00040 ACE_Addr::get_addr (void) const
00041 {
00042   return 0;
00043 }
00044 
00045 void
00046 ACE_Addr::set_addr (void *, int)
00047 {
00048 }
00049 
00050 // Initializes instance variables.
00051 
00052 void
00053 ACE_Addr::base_set (int type, int size)
00054 {
00055   this->addr_type_ = type;
00056   this->addr_size_ = size;
00057 }
00058 
00059 void
00060 ACE_Addr::dump (void) const
00061 {
00062 #if defined (ACE_HAS_DUMP)
00063   ACE_TRACE ("ACE_Addr::dump");
00064 
00065   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00066   ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("addr_type_ = %d"), this->addr_type_));
00067   ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\naddr_size_ = %d"), this->addr_size_));
00068   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00069 #endif /* ACE_HAS_DUMP */
00070 }
00071 
00072 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 09:41:45 2006 for ACE by doxygen 1.3.6