00001 // -*- C++ -*- 00002 // 00003 // Addr.inl,v 4.3 2005/10/28 16:14:51 ossama Exp 00004 00005 // Return the address of the address. 00006 00007 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00008 00009 ACE_INLINE bool 00010 ACE_Addr::operator == (const ACE_Addr &sap) const 00011 { 00012 return (sap.addr_type_ == this->addr_type_ && 00013 sap.addr_size_ == this->addr_size_ ); 00014 } 00015 00016 ACE_INLINE bool 00017 ACE_Addr::operator != (const ACE_Addr &sap) const 00018 { 00019 return (sap.addr_type_ != this->addr_type_ || 00020 sap.addr_size_ != this->addr_size_ ); 00021 } 00022 00023 // Return the size of the address. 00024 00025 ACE_INLINE int 00026 ACE_Addr::get_size (void) const 00027 { 00028 return this->addr_size_; 00029 } 00030 00031 // Sets the size of the address. 00032 00033 ACE_INLINE void 00034 ACE_Addr::set_size (int size) 00035 { 00036 this->addr_size_ = size; 00037 } 00038 00039 // Return the type of the address. 00040 00041 ACE_INLINE int 00042 ACE_Addr::get_type (void) const 00043 { 00044 return this->addr_type_; 00045 } 00046 00047 // Set the type of the address. 00048 00049 ACE_INLINE void 00050 ACE_Addr::set_type (int type) 00051 { 00052 this->addr_type_ = type; 00053 } 00054 00055 ACE_INLINE unsigned long 00056 ACE_Addr::hash (void) const 00057 { 00058 return 0; 00059 } 00060 00061 ACE_END_VERSIONED_NAMESPACE_DECL