SPIPE_Addr.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // SPIPE_Addr.inl,v 4.3 2005/10/28 16:14:55 ossama Exp
00004 
00005 
00006 #include "ace/SString.h"
00007 
00008 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00009 
00010 // Compare two addresses for equality.
00011 
00012 ACE_INLINE bool
00013 ACE_SPIPE_Addr::operator == (const ACE_SPIPE_Addr &sap) const
00014 {
00015   return ACE_OS::strcmp (this->SPIPE_addr_.rendezvous_,
00016                          sap.SPIPE_addr_.rendezvous_    ) == 0;
00017 }
00018 
00019 // Compare two addresses for inequality.
00020 
00021 ACE_INLINE bool
00022 ACE_SPIPE_Addr::operator != (const ACE_SPIPE_Addr &sap) const
00023 {
00024   return !((*this) == sap);     // This is lazy, of course... ;-)
00025 }
00026 
00027 // Return the path name used for the rendezvous point.
00028 
00029 ACE_INLINE const ACE_TCHAR *
00030 ACE_SPIPE_Addr::get_path_name (void) const
00031 {
00032   return this->SPIPE_addr_.rendezvous_;
00033 }
00034 
00035 ACE_INLINE uid_t
00036 ACE_SPIPE_Addr::user_id (void) const
00037 {
00038   return this->SPIPE_addr_.uid_;
00039 }
00040 
00041 ACE_INLINE void
00042 ACE_SPIPE_Addr::user_id (uid_t uid)
00043 {
00044   this->SPIPE_addr_.uid_ = uid;
00045 }
00046 
00047 ACE_INLINE gid_t
00048 ACE_SPIPE_Addr::group_id (void) const
00049 {
00050   return this->SPIPE_addr_.gid_;
00051 }
00052 
00053 ACE_INLINE void
00054 ACE_SPIPE_Addr::group_id (gid_t gid)
00055 {
00056   this->SPIPE_addr_.gid_ = gid;
00057 }
00058 
00059 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 09:42:04 2006 for ACE by doxygen 1.3.6