Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Addr.cpp

Go to the documentation of this file.
00001 #include "ace_pch.h"
00002 // Addr.cpp
00003 // $Id: Addr.cpp,v 1.1.1.4.2.1 2003/03/13 19:44:20 chad Exp $
00004 
00005 #include "ace/Addr.h"
00006 #include "ace/Log_Msg.h"
00007 #include "ace/OS.h"
00008 
00009 ACE_RCSID(ace, Addr, "$Id: Addr.cpp,v 1.1.1.4.2.1 2003/03/13 19:44:20 chad Exp $")
00010 
00011 #if defined (ACE_HAS_BROKEN_SAP_ANY)
00012 #if defined (sap_any)
00013 #undef sap_any
00014 // Note: this object requires static construction and destruction.
00015 /* static */
00016 const ACE_Addr ace_sap_any (AF_ANY, -1);
00017 
00018 const ACE_Addr &
00019 ACE_Addr::sap_any (void)
00020 {
00021   return ace_sap_any;
00022 }
00023 #define sap_any sap_any()
00024 #endif /* sap_any */
00025 #else
00026 // Note: this object requires static construction and destruction.
00027 /* static */
00028 const ACE_Addr ACE_Addr::sap_any (AF_ANY, -1);
00029 #endif /* ACE_HAS_BROKEN_SAP_ANY */
00030 
00031 #if !defined (__ACE_INLINE__)
00032 #include "ace/Addr.i"
00033 #endif /* __ACE_INLINE__ */
00034 
00035 ACE_ALLOC_HOOK_DEFINE(ACE_Addr)
00036 
00037 void
00038 ACE_Addr::dump (void) const
00039 {
00040   ACE_TRACE ("ACE_Addr::dump");
00041 
00042   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00043   ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("addr_type_ = %d"), this->addr_type_));
00044   ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\naddr_size_ = %d"), this->addr_size_));
00045   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00046 }
00047 
00048 // Initializes instance variables.
00049 
00050 void
00051 ACE_Addr::base_set (int type, int size)
00052 {
00053   this->addr_type_ = type;
00054   this->addr_size_ = size;
00055 }
00056 
00057 // Initializes instance variables.  Note that 0 is an unspecified
00058 // protocol family type...
00059 
00060 ACE_Addr::ACE_Addr (int type, int size)
00061 {
00062   this->base_set (type, size);
00063 }
00064 
00065 ACE_Addr::~ACE_Addr (void)
00066 {
00067 }

Generated on Mon Jun 16 11:19:03 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002