[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / UNIX_Addr.inl
blob5e801b56fea58d0f867f355a1bf584b8e9b53faa
1 // -*- C++ -*-
2 //
3 // $Id: UNIX_Addr.inl 80826 2008-03-04 14:51:23Z wotte $
6 #include "ace/OS_NS_string.h"
9 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
11 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
13 #if defined (ACE_HAS_WCHAR)
14 /// Creates an ACE_UNIX_Addr from a string.
15 ACE_INLINE
16 ACE_UNIX_Addr::ACE_UNIX_Addr (const wchar_t rendezvous_point[])
18   this->set (ACE_Wide_To_Ascii (rendezvous_point).char_rep ());
21 /// Creates an ACE_UNIX_Addr from a string.
22 ACE_INLINE int
23 ACE_UNIX_Addr::set (const wchar_t rendezvous_point[])
25   return this->set (ACE_Wide_To_Ascii (rendezvous_point).char_rep ());
27 #endif /* ACE_HAS_WCHAR */
29 // Compare two addresses for equality.
31 ACE_INLINE bool
32 ACE_UNIX_Addr::operator == (const ACE_UNIX_Addr &sap) const
34   return ACE_OS::strncmp (this->unix_addr_.sun_path,
35                           sap.unix_addr_.sun_path,
36                           sizeof this->unix_addr_.sun_path) == 0;
39 // Compare two addresses for inequality.
41 ACE_INLINE bool
42 ACE_UNIX_Addr::operator != (const ACE_UNIX_Addr &sap) const
44   return !((*this) == sap);     // This is lazy, of course... ;-)
47 // Return the path name used for the rendezvous point.
49 ACE_INLINE const char *
50 ACE_UNIX_Addr::get_path_name (void) const
52   return this->unix_addr_.sun_path;
55 ACE_END_VERSIONED_NAMESPACE_DECL
57 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */