Also use Objects as part of an operation but as a result don't generate Any operation...
[ACE_TAO.git] / ACE / ace / LSOCK_CODgram.cpp
blobd3f6d72e616ecbd712df4250da4d40f31203e078
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)
19 void
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 ();
27 ACE_LSOCK::dump ();
28 ACELIB_DEBUG ((LM_DEBUG, ACE_END_DUMP));
29 #endif /* ACE_HAS_DUMP */
32 /* Here's the general-purpose open routine. */
34 int
35 ACE_LSOCK_CODgram::open (const ACE_Addr &remote,
36 const ACE_Addr &local,
37 int protocol_family,
38 int protocol)
40 ACE_TRACE ("ACE_LSOCK_CODgram::open");
41 if (ACE_SOCK_CODgram::open (remote, local, protocol_family,
42 protocol) == -1)
43 return -1;
44 ACE_LSOCK::set_handle (this->get_handle ());
45 return 0;
48 /* Create a local ACE_SOCK datagram. */
50 ACE_LSOCK_CODgram::ACE_LSOCK_CODgram (const ACE_Addr &remote,
51 const ACE_Addr &local,
52 int protocol_family,
53 int protocol)
55 ACE_TRACE ("ACE_LSOCK_CODgram::ACE_LSOCK_CODgram");
56 if (this->open (remote, local, protocol_family,
57 protocol) == -1)
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 */