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