Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / DEV_Addr.inl
blob5c1da68d7e76567829c2ecaf116508d26b86fa9f
1 // -*- C++ -*-
2 //
3 // $Id: DEV_Addr.inl 80826 2008-03-04 14:51:23Z wotte $
5 #include "ace/OS_NS_string.h"
6 #include "ace/Global_Macros.h"
7 #include "ace/os_include/sys/os_socket.h"
9 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
11 ACE_INLINE void
12 ACE_DEV_Addr::set (const ACE_TCHAR *devname)
14   ACE_TRACE ("ACE_DEV_Addr::set");
16   this->ACE_Addr::base_set
17     (AF_DEV, static_cast<int> (ACE_OS::strlen (devname)));
18   ACE_OS::strsncpy (this->devname_, devname, ACE_DEV_Addr::DEVNAME_LENGTH);
21 // Compare two addresses for equality.
23 ACE_INLINE bool
24 ACE_DEV_Addr::operator == (const ACE_DEV_Addr &sap) const
26   ACE_TRACE ("ACE_DEV_Addr::operator ==");
28   return ACE_OS::strcmp (this->devname_, sap.devname_) == 0;
31 // Compare two addresses for inequality.
33 ACE_INLINE bool
34 ACE_DEV_Addr::operator != (const ACE_DEV_Addr &sap) const
36   ACE_TRACE ("ACE_DEV_Addr::operator !=");
38   return !((*this) == sap);     // This is lazy, of course... ;-).
41 // Return the path name used for the rendezvous point.
43 ACE_INLINE const ACE_TCHAR *
44 ACE_DEV_Addr::get_path_name (void) const
46   ACE_TRACE ("ACE_DEV_Addr::get_path_name");
48   return this->devname_;
51 ACE_END_VERSIONED_NAMESPACE_DECL