00001 /* -*- C++ -*- */ 00002 // $Id: Addr.i,v 1.1.1.3 2003/02/21 18:36:32 chad Exp $ 00003 00004 // Addr.i 00005 00006 // Return the address of the address. 00007 00008 ACE_INLINE void * 00009 ACE_Addr::get_addr (void) const 00010 { 00011 return 0; 00012 } 00013 00014 ACE_INLINE void 00015 ACE_Addr::set_addr (void *, int) 00016 { 00017 } 00018 00019 ACE_INLINE int 00020 ACE_Addr::operator == (const ACE_Addr &sap) const 00021 { 00022 return (sap.addr_type_ == this->addr_type_ && 00023 sap.addr_size_ == this->addr_size_ ); 00024 } 00025 00026 ACE_INLINE int 00027 ACE_Addr::operator != (const ACE_Addr &sap) const 00028 { 00029 return (sap.addr_type_ != this->addr_type_ || 00030 sap.addr_size_ != this->addr_size_ ); 00031 } 00032 00033 // Return the size of the address. 00034 00035 ACE_INLINE int 00036 ACE_Addr::get_size (void) const 00037 { 00038 return this->addr_size_; 00039 } 00040 00041 // Sets the size of the address. 00042 00043 ACE_INLINE void 00044 ACE_Addr::set_size (int size) 00045 { 00046 this->addr_size_ = size; 00047 } 00048 00049 // Return the type of the address. 00050 00051 ACE_INLINE int 00052 ACE_Addr::get_type (void) const 00053 { 00054 return this->addr_type_; 00055 } 00056 00057 // Set the type of the address. 00058 00059 ACE_INLINE void 00060 ACE_Addr::set_type (int type) 00061 { 00062 this->addr_type_ = type; 00063 } 00064 00065 ACE_INLINE unsigned long 00066 ACE_Addr::hash (void) const 00067 { 00068 return 0; 00069 }
1.2.14 written by Dimitri van Heesch,
© 1997-2002