1 #include "ace/LSOCK_CODgram.h"
2 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
4 #include "ace/Log_Category.h"
5 #if defined (ACE_HAS_ALLOC_HOOKS)
6 # include "ace/Malloc_Base.h"
7 #endif /* ACE_HAS_ALLOC_HOOKS */
11 #if !defined (__ACE_INLINE__)
12 #include "ace/LSOCK_CODgram.inl"
13 #endif /* __ACE_INLINE__ */
15 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
17 ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK_CODgram
)
20 ACE_LSOCK_CODgram::dump (void) const
22 #if defined (ACE_HAS_DUMP)
23 ACE_TRACE ("ACE_LSOCK_CODgram::dump");
25 ACELIB_DEBUG ((LM_DEBUG
, ACE_BEGIN_DUMP
, this));
26 ACE_SOCK_CODgram::dump ();
28 ACELIB_DEBUG ((LM_DEBUG
, ACE_END_DUMP
));
29 #endif /* ACE_HAS_DUMP */
32 /* Here's the general-purpose open routine. */
35 ACE_LSOCK_CODgram::open (const ACE_Addr
&remote
,
36 const ACE_Addr
&local
,
40 ACE_TRACE ("ACE_LSOCK_CODgram::open");
41 if (ACE_SOCK_CODgram::open (remote
, local
, protocol_family
,
44 ACE_LSOCK::set_handle (this->get_handle ());
48 /* Create a local ACE_SOCK datagram. */
50 ACE_LSOCK_CODgram::ACE_LSOCK_CODgram (const ACE_Addr
&remote
,
51 const ACE_Addr
&local
,
55 ACE_TRACE ("ACE_LSOCK_CODgram::ACE_LSOCK_CODgram");
56 if (this->open (remote
, local
, protocol_family
,
58 ACELIB_ERROR ((LM_ERROR
, ACE_TEXT ("%p\n"), ACE_TEXT ("ACE_LSOCK_CODgram")));
61 ACE_END_VERSIONED_NAMESPACE_DECL
63 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */