ACE_LSOCK Class Reference

Create a Local ACE_SOCK, which is used for passing file descriptors. More...

#include <LSOCK.h>

Inheritance diagram for ACE_LSOCK:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.

Protected Member Functions

 ACE_LSOCK (void)
 Default constructor.
 ACE_LSOCK (ACE_HANDLE handle)
 Initialize based on handle.
ACE_HANDLE get_handle (void) const
 Get handle.
void set_handle (ACE_HANDLE handle)
 Set handle.

Private Attributes

ACE_HANDLE aux_handle_
 An auxiliary handle used to avoid virtual base classes...

Detailed Description

Create a Local ACE_SOCK, which is used for passing file descriptors.

Definition at line 37 of file LSOCK.h.


Constructor & Destructor Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_LSOCK::ACE_LSOCK ( void   )  [protected]

Default constructor.

Definition at line 10 of file LSOCK.inl.

References ACE_TRACE.

00011   : aux_handle_ (ACE_INVALID_HANDLE)
00012 {
00013   ACE_TRACE ("ACE_LSOCK::ACE_LSOCK");
00014 }

ACE_INLINE ACE_LSOCK::ACE_LSOCK ( ACE_HANDLE  handle  )  [protected]

Initialize based on handle.

Definition at line 37 of file LSOCK.inl.

References ACE_TRACE.

00038   : aux_handle_ (handle)
00039 {
00040   ACE_TRACE ("ACE_LSOCK::ACE_LSOCK");
00041 }


Member Function Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL void ACE_LSOCK::dump ( void   )  const

Dump the state of an object.

Reimplemented in ACE_LSOCK_CODgram, ACE_LSOCK_Dgram, and ACE_LSOCK_Stream.

Definition at line 21 of file LSOCK.cpp.

References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_TEXT, ACE_TRACE, and LM_DEBUG.

Referenced by ACE_LSOCK_Stream::dump(), ACE_LSOCK_Dgram::dump(), and ACE_LSOCK_CODgram::dump().

00022 {
00023 #if defined (ACE_HAS_DUMP)
00024   ACE_TRACE ("ACE_LSOCK::dump");
00025 
00026   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00027   ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("aux_handle_ = %d"), this->aux_handle_));
00028   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00029 #endif /* ACE_HAS_DUMP */
00030 }

ACE_INLINE ACE_HANDLE ACE_LSOCK::get_handle ( void   )  const [protected]

Get handle.

Reimplemented in ACE_LSOCK_CODgram, ACE_LSOCK_Dgram, and ACE_LSOCK_Stream.

Definition at line 28 of file LSOCK.inl.

References ACE_TRACE, and aux_handle_.

00029 {
00030   ACE_TRACE ("ACE_LSOCK::get_handle");
00031   return this->aux_handle_;
00032 }

ACE_INLINE void ACE_LSOCK::set_handle ( ACE_HANDLE  handle  )  [protected]

Set handle.

Reimplemented in ACE_LSOCK_CODgram, ACE_LSOCK_Dgram, and ACE_LSOCK_Stream.

Definition at line 19 of file LSOCK.inl.

References ACE_TRACE, and aux_handle_.

Referenced by ACE_LSOCK_Dgram::open(), ACE_LSOCK_CODgram::open(), ACE_LSOCK_Stream::set_handle(), ACE_LSOCK_Dgram::set_handle(), and ACE_LSOCK_CODgram::set_handle().

00020 {
00021   ACE_TRACE ("ACE_LSOCK::set_handle");
00022   this->aux_handle_ = handle;
00023 }


Member Data Documentation

ACE_LSOCK::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

Reimplemented in ACE_LSOCK_CODgram, ACE_LSOCK_Dgram, and ACE_LSOCK_Stream.

Definition at line 54 of file LSOCK.h.

ACE_HANDLE ACE_LSOCK::aux_handle_ [private]

An auxiliary handle used to avoid virtual base classes...

Definition at line 73 of file LSOCK.h.

Referenced by get_handle(), and set_handle().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:35:16 2010 for ACE by  doxygen 1.4.7