00001 #include "ace_pch.h"
00002
00003
00004
00005 #include "ace/LSOCK_CODgram.h"
00006 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
00007
00008 #include "ace/Log_Msg.h"
00009
00010 ACE_RCSID(ace, LSOCK_CODgram, "$Id: LSOCK_CODgram.cpp,v 1.1.1.4.2.1 2003/03/13 19:44:21 chad Exp $")
00011
00012 #if defined (ACE_LACKS_INLINE_FUNCTIONS)
00013 #include "ace/LSOCK_CODgram.i"
00014 #endif
00015
00016 ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK_CODgram)
00017
00018 void
00019 ACE_LSOCK_CODgram::dump (void) const
00020 {
00021 ACE_TRACE ("ACE_LSOCK_CODgram::dump");
00022
00023 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00024 ACE_SOCK_CODgram::dump ();
00025 ACE_LSOCK::dump ();
00026 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00027 }
00028
00029
00030
00031 int
00032 ACE_LSOCK_CODgram::open (const ACE_Addr &remote,
00033 const ACE_Addr &local,
00034 int protocol_family,
00035 int protocol)
00036 {
00037 ACE_TRACE ("ACE_LSOCK_CODgram::open");
00038 if (ACE_SOCK_CODgram::open (remote, local, protocol_family,
00039 protocol) == -1)
00040 return -1;
00041 ACE_LSOCK::set_handle (this->get_handle ());
00042 return 0;
00043 }
00044
00045
00046
00047 ACE_LSOCK_CODgram::ACE_LSOCK_CODgram (const ACE_Addr &remote,
00048 const ACE_Addr &local,
00049 int protocol_family,
00050 int protocol)
00051 {
00052 ACE_TRACE ("ACE_LSOCK_CODgram::ACE_LSOCK_CODgram");
00053 if (this->open (remote, local, protocol_family,
00054 protocol) == -1)
00055 ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("ACE_LSOCK_CODgram")));
00056 }
00057 #endif