Public Member Functions | Private Attributes

ACE_Log_Msg_IPC Class Reference

Defines the interfaces for ACE_Log_Msg backend. More...

#include <Log_Msg_IPC.h>

Inheritance diagram for ACE_Log_Msg_IPC:
Inheritance graph
[legend]
Collaboration diagram for ACE_Log_Msg_IPC:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ACE_Log_Msg_IPC (void)
 Constructor.
virtual ~ACE_Log_Msg_IPC (void)
 Destructor.
virtual int open (const ACE_TCHAR *logger_key)
 Open a new connection.
virtual int reset (void)
virtual int close (void)
 Close the backend completely.
virtual ssize_t log (ACE_Log_Record &log_record)

Private Attributes

ACE_LOG_MSG_IPC_STREAM message_queue_

Detailed Description

Defines the interfaces for ACE_Log_Msg backend.

Implement an ACE_Log_Msg_Backend that logs to a remote logging process.


Constructor & Destructor Documentation

ACE_Log_Msg_IPC::ACE_Log_Msg_IPC ( void   ) 

Constructor.

ACE_Log_Msg_IPC::~ACE_Log_Msg_IPC ( void   )  [virtual]

Destructor.


Member Function Documentation

int ACE_Log_Msg_IPC::close ( void   )  [virtual]

Close the backend completely.

Implements ACE_Log_Msg_Backend.

ssize_t ACE_Log_Msg_IPC::log ( ACE_Log_Record log_record  )  [virtual]

Process a log record.

Parameters:
log_record The ACE_Log_Record to process.
Return values:
-1 for failure; else it is customarily the number of bytes processed, but can also be 0 to signify success.

Implements ACE_Log_Msg_Backend.

int ACE_Log_Msg_IPC::open ( const ACE_TCHAR logger_key  )  [virtual]

Open a new connection.

Implements ACE_Log_Msg_Backend.

int ACE_Log_Msg_IPC::reset ( void   )  [virtual]

Reset the backend. When changing the logging destination the backend may need to properly disconnect from the remote logging daemon and reclaim some local resources. But we try to reduce the number of local allocations/deallocations.

Implements ACE_Log_Msg_Backend.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines