Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / DEV_Addr.inl
blob922fdfaefe015c7a0ecedf58b35dfb99dacd6032
1 // -*- C++ -*-
2 #include "ace/OS_NS_string.h"
3 #include "ace/Global_Macros.h"
4 #include "ace/os_include/sys/os_socket.h"
6 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
8 ACE_INLINE void
9 ACE_DEV_Addr::set (const ACE_TCHAR *devname)
11   ACE_TRACE ("ACE_DEV_Addr::set");
13   this->ACE_Addr::base_set
14     (AF_DEV, static_cast<int> (ACE_OS::strlen (devname)));
15   ACE_OS::strsncpy (this->devname_, devname, ACE_DEV_Addr::DEVNAME_LENGTH);
18 // Compare two addresses for equality.
20 ACE_INLINE bool
21 ACE_DEV_Addr::operator == (const ACE_DEV_Addr &sap) const
23   ACE_TRACE ("ACE_DEV_Addr::operator ==");
25   return ACE_OS::strcmp (this->devname_, sap.devname_) == 0;
28 // Compare two addresses for inequality.
30 ACE_INLINE bool
31 ACE_DEV_Addr::operator != (const ACE_DEV_Addr &sap) const
33   ACE_TRACE ("ACE_DEV_Addr::operator !=");
35   return !((*this) == sap);     // This is lazy, of course... ;-).
38 // Return the path name used for the rendezvous point.
40 ACE_INLINE const ACE_TCHAR *
41 ACE_DEV_Addr::get_path_name () const
43   ACE_TRACE ("ACE_DEV_Addr::get_path_name");
45   return this->devname_;
48 ACE_END_VERSIONED_NAMESPACE_DECL