ACE_LSOCK_CODgram Class Reference

Defines the member functions for the connected datagram abstraction. More...

#include <LSOCK_CODgram.h>

Inheritance diagram for ACE_LSOCK_CODgram:

Inheritance graph
[legend]
Collaboration diagram for ACE_LSOCK_CODgram:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_LSOCK_CODgram (void)
 Default constructor.

 ACE_LSOCK_CODgram (const ACE_Addr &remote_sap, const ACE_Addr &local_sap=ACE_Addr::sap_any, int protocol_family=PF_UNIX, int protocol=0)
 Initiate a connected-datagram.

int open (const ACE_Addr &remote_sap, const ACE_Addr &local_sap=ACE_Addr::sap_any, int protocol_family=PF_UNIX, int protocol=0)
 Initiate a connected-datagram.

ACE_HANDLE get_handle (void) const
 Get underlying handle.

void set_handle (ACE_HANDLE)
 Set underlying handle.

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


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.


Detailed Description

Defines the member functions for the connected datagram abstraction.

Definition at line 38 of file LSOCK_CODgram.h.


Constructor & Destructor Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_LSOCK_CODgram::ACE_LSOCK_CODgram void   ) 
 

Default constructor.

Definition at line 10 of file LSOCK_CODgram.inl.

References ACE_TRACE.

00011 {
00012   ACE_TRACE ("ACE_LSOCK_CODgram::ACE_LSOCK_CODgram");
00013 }

ACE_LSOCK_CODgram::ACE_LSOCK_CODgram const ACE_Addr remote_sap,
const ACE_Addr local_sap = ACE_Addr::sap_any,
int  protocol_family = PF_UNIX,
int  protocol = 0
 

Initiate a connected-datagram.

Definition at line 49 of file LSOCK_CODgram.cpp.

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

00053 {
00054   ACE_TRACE ("ACE_LSOCK_CODgram::ACE_LSOCK_CODgram");
00055   if (this->open (remote, local, protocol_family,
00056                   protocol) == -1)
00057     ACE_ERROR ((LM_ERROR,  ACE_LIB_TEXT ("%p\n"),  ACE_LIB_TEXT ("ACE_LSOCK_CODgram")));
00058 }


Member Function Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL void ACE_LSOCK_CODgram::dump void   )  const
 

Dump the state of an object.

Reimplemented from ACE_LSOCK.

Definition at line 19 of file LSOCK_CODgram.cpp.

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

00020 {
00021 #if defined (ACE_HAS_DUMP)
00022   ACE_TRACE ("ACE_LSOCK_CODgram::dump");
00023 
00024   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00025   ACE_SOCK_CODgram::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_CODgram::get_handle void   )  const
 

Get underlying handle.

Reimplemented from ACE_LSOCK.

Definition at line 24 of file LSOCK_CODgram.inl.

References ACE_TRACE, and ACE_IPC_SAP::get_handle().

00025 {
00026   ACE_TRACE ("ACE_LSOCK_CODgram::get_handle");
00027   return this->ACE_SOCK_CODgram::get_handle ();
00028 }

int ACE_LSOCK_CODgram::open const ACE_Addr remote_sap,
const ACE_Addr local_sap = ACE_Addr::sap_any,
int  protocol_family = PF_UNIX,
int  protocol = 0
 

Initiate a connected-datagram.

Definition at line 34 of file LSOCK_CODgram.cpp.

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

Referenced by ACE_LSOCK_CODgram().

00038 {
00039   ACE_TRACE ("ACE_LSOCK_CODgram::open");
00040   if (ACE_SOCK_CODgram::open (remote, local, protocol_family,
00041                               protocol) == -1)
00042     return -1;
00043   ACE_LSOCK::set_handle (this->get_handle ());
00044   return 0;
00045 }

ACE_INLINE void ACE_LSOCK_CODgram::set_handle ACE_HANDLE   ) 
 

Set underlying handle.

Reimplemented from ACE_LSOCK.

Definition at line 16 of file LSOCK_CODgram.inl.

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

00017 {
00018   ACE_TRACE ("ACE_LSOCK_CODgram::set_handle");
00019   this->ACE_SOCK_CODgram::set_handle (h);
00020   this->ACE_LSOCK::set_handle (h);
00021 }


Member Data Documentation

ACE_LSOCK_CODgram::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented from ACE_LSOCK.

Definition at line 67 of file LSOCK_CODgram.h.


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