3 #include "ace/OS_NS_string.h"
5 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
7 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
9 #if defined (ACE_HAS_WCHAR)
10 /// Creates an ACE_UNIX_Addr from a string.
12 ACE_UNIX_Addr::ACE_UNIX_Addr (const wchar_t rendezvous_point[])
14 this->set (ACE_Wide_To_Ascii (rendezvous_point).char_rep ());
17 /// Creates an ACE_UNIX_Addr from a string.
19 ACE_UNIX_Addr::set (const wchar_t rendezvous_point[])
21 return this->set (ACE_Wide_To_Ascii (rendezvous_point).char_rep ());
23 #endif /* ACE_HAS_WCHAR */
25 // Compare two addresses for equality.
28 ACE_UNIX_Addr::operator == (const ACE_UNIX_Addr &sap) const
30 return ACE_OS::strncmp (this->unix_addr_.sun_path,
31 sap.unix_addr_.sun_path,
32 sizeof this->unix_addr_.sun_path) == 0;
35 // Compare two addresses for inequality.
38 ACE_UNIX_Addr::operator != (const ACE_UNIX_Addr &sap) const
40 return !((*this) == sap); // This is lazy, of course... ;-)
43 // Return the path name used for the rendezvous point.
45 ACE_INLINE const char *
46 ACE_UNIX_Addr::get_path_name () const
48 return this->unix_addr_.sun_path;
51 ACE_END_VERSIONED_NAMESPACE_DECL
53 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */