[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / LSOCK_Dgram.cpp
blob60e630f0bc0cffafb233f3a0f5c1480fef33fbbd
1 // $Id: LSOCK_Dgram.cpp 80826 2008-03-04 14:51:23Z wotte $
3 #include "ace/LSOCK_Dgram.h"
4 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
6 #include "ace/Log_Msg.h"
8 ACE_RCSID(ace, LSOCK_Dgram, "$Id: LSOCK_Dgram.cpp 80826 2008-03-04 14:51:23Z wotte $")
10 #if !defined (__ACE_INLINE__)
11 #include "ace/LSOCK_Dgram.inl"
12 #endif /* __ACE_INLINE__ */
14 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
16 ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK_Dgram)
18 void
19 ACE_LSOCK_Dgram::dump (void) const
21 #if defined (ACE_HAS_DUMP)
22 ACE_TRACE ("ACE_LSOCK_Dgram::dump");
24 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
25 ACE_SOCK_Dgram::dump ();
26 ACE_LSOCK::dump ();
27 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
28 #endif /* ACE_HAS_DUMP */
31 // The "do nothing" constructor.
33 ACE_LSOCK_Dgram::ACE_LSOCK_Dgram (void)
35 ACE_TRACE ("ACE_LSOCK_Dgram::ACE_LSOCK_Dgram");
38 // Here's the general-purpose open routine.
40 int
41 ACE_LSOCK_Dgram::open (const ACE_Addr &local,
42 int protocol_family,
43 int protocol)
45 ACE_TRACE ("ACE_LSOCK_Dgram::open");
46 if (ACE_SOCK_Dgram::open (local,
47 protocol_family,
48 protocol) == -1)
49 return -1;
50 ACE_LSOCK::set_handle (this->ACE_SOCK_Dgram::get_handle ());
51 return 0;
54 // Create a local ACE_SOCK datagram.
56 ACE_LSOCK_Dgram::ACE_LSOCK_Dgram (const ACE_Addr &local,
57 int protocol_family,
58 int protocol)
60 ACE_TRACE ("ACE_LSOCK_Dgram::ACE_LSOCK_Dgram");
61 if (this->open (local,
62 protocol_family,
63 protocol) == -1)
64 ACE_ERROR ((LM_ERROR,
65 ACE_TEXT ("%p\n"),
66 ACE_TEXT ("ACE_LSOCK_Dgram")));
69 ACE_END_VERSIONED_NAMESPACE_DECL
71 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */