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
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.
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.
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 (void) const
43 ACE_TRACE ("ACE_DEV_Addr::get_path_name");
45 return this->devname_;
48 ACE_END_VERSIONED_NAMESPACE_DECL