diff options
Diffstat (limited to 'ace/Addr.i')
-rw-r--r-- | ace/Addr.i | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/ace/Addr.i b/ace/Addr.i new file mode 100644 index 00000000000..30ce46a1f62 --- /dev/null +++ b/ace/Addr.i @@ -0,0 +1,77 @@ +/* -*- C++ -*- */ +// $Id$ + +// Addr.i + +// Return the address of the address. + +ACE_INLINE void * +ACE_Addr::get_addr (void) const +{ + return 0; +} + +ACE_INLINE void +ACE_Addr::set_addr (void *, int) +{ +} + +// Transform the current address into string format. + +ACE_INLINE int +ACE_Addr::addr_to_string (char [], size_t) const +{ + return -1; +} + +// Transform the string into the current addressing format. + +ACE_INLINE int +ACE_Addr::string_to_addr (const char []) +{ + return -1; +} + +ACE_INLINE int +ACE_Addr::operator == (const ACE_Addr &sap) const +{ + return sap.addr_type_ == 0; +} + +ACE_INLINE int +ACE_Addr::operator != (const ACE_Addr &sap) const +{ + return sap.addr_type_ != 0; +} + +// Return the size of the address. + +ACE_INLINE int +ACE_Addr::get_size (void) const +{ + return this->addr_size_; +} + +// Sets the size of the address. + +ACE_INLINE void +ACE_Addr::set_size (int size) +{ + this->addr_size_ = size; +} + +// Return the type of the address. + +ACE_INLINE int +ACE_Addr::get_type (void) const +{ + return this->addr_type_; +} + +// Set the type of the address. + +ACE_INLINE void +ACE_Addr::set_type (int type) +{ + this->addr_type_ = type; +} |