ACE_LSOCK_Dgram Class Reference

Create a Local ACE_SOCK datagram. More...

#include <LSOCK_Dgram.h>

Inheritance diagram for ACE_LSOCK_Dgram:

Inheritance graph
[legend]
Collaboration diagram for ACE_LSOCK_Dgram:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_LSOCK_Dgram (void)
 Default constructor.

 ACE_LSOCK_Dgram (const ACE_Addr &local, int protocol_family=PF_UNIX, int protocol=0)
 Initiate a local dgram.

int open (const ACE_Addr &local, int protocol_family=PF_UNIX, int protocol=0)
 Initiate a local dgram.

ACE_HANDLE get_handle (void) const
 Get handle.

void set_handle (ACE_HANDLE)
 Set handle.

void dump (void) const
 Dump the state of an object.


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.


Detailed Description

Create a Local ACE_SOCK datagram.

Definition at line 36 of file LSOCK_Dgram.h.


Constructor & Destructor Documentation

ACE_LSOCK_Dgram::ACE_LSOCK_Dgram void   ) 
 

Default constructor.

Definition at line 33 of file LSOCK_Dgram.cpp.

References ACE_TRACE.

00034 {
00035   ACE_TRACE ("ACE_LSOCK_Dgram::ACE_LSOCK_Dgram");
00036 }

ACE_LSOCK_Dgram::ACE_LSOCK_Dgram const ACE_Addr local,
int  protocol_family = PF_UNIX,
int  protocol = 0
 

Initiate a local dgram.

Definition at line 56 of file LSOCK_Dgram.cpp.

References ACE_ERROR, ACE_LIB_TEXT, ACE_TRACE, LM_ERROR, and open().

00059 {
00060   ACE_TRACE ("ACE_LSOCK_Dgram::ACE_LSOCK_Dgram");
00061   if (this->open (local,
00062                   protocol_family,
00063                   protocol) == -1)
00064     ACE_ERROR ((LM_ERROR,
00065                 ACE_LIB_TEXT ("%p\n"),
00066                 ACE_LIB_TEXT ("ACE_LSOCK_Dgram")));
00067 }


Member Function Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL void ACE_LSOCK_Dgram::dump void   )  const
 

Dump the state of an object.

Reimplemented from ACE_LSOCK.

Definition at line 19 of file LSOCK_Dgram.cpp.

References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_TRACE, ACE_LSOCK::dump(), ACE_SOCK_Dgram::dump(), and LM_DEBUG.

00020 {
00021 #if defined (ACE_HAS_DUMP)
00022   ACE_TRACE ("ACE_LSOCK_Dgram::dump");
00023 
00024   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00025   ACE_SOCK_Dgram::dump ();
00026   ACE_LSOCK::dump ();
00027   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00028 #endif /* ACE_HAS_DUMP */
00029 }

ACE_INLINE ACE_HANDLE ACE_LSOCK_Dgram::get_handle void   )  const
 

Get handle.

Reimplemented from ACE_LSOCK.

Definition at line 16 of file LSOCK_Dgram.inl.

References ACE_TRACE, and ACE_IPC_SAP::get_handle().

00017 {
00018   ACE_TRACE ("ACE_LSOCK_Dgram::get_handle");
00019   return this->ACE_SOCK_Dgram::get_handle ();
00020 }

int ACE_LSOCK_Dgram::open const ACE_Addr local,
int  protocol_family = PF_UNIX,
int  protocol = 0
 

Initiate a local dgram.

Definition at line 41 of file LSOCK_Dgram.cpp.

References ACE_TRACE, ACE_SOCK_Dgram::open(), and ACE_LSOCK::set_handle().

Referenced by ACE_LSOCK_Dgram().

00044 {
00045   ACE_TRACE ("ACE_LSOCK_Dgram::open");
00046   if (ACE_SOCK_Dgram::open (local,
00047                             protocol_family,
00048                             protocol) == -1)
00049     return -1;
00050   ACE_LSOCK::set_handle (this->ACE_SOCK_Dgram::get_handle ());
00051   return 0;
00052 }

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE void ACE_LSOCK_Dgram::set_handle ACE_HANDLE   ) 
 

Set handle.

Reimplemented from ACE_LSOCK.

Definition at line 8 of file LSOCK_Dgram.inl.

References ACE_TRACE, ACE_LSOCK::set_handle(), and ACE_IPC_SAP::set_handle().

00009 {
00010   ACE_TRACE ("ACE_LSOCK_Dgram::set_handle");
00011   this->ACE_SOCK_Dgram::set_handle (h);
00012   this->ACE_LSOCK::set_handle (h);
00013 }


Member Data Documentation

ACE_LSOCK_Dgram::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented from ACE_LSOCK.

Definition at line 63 of file LSOCK_Dgram.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:24:14 2006 for ACE by doxygen 1.3.6