reSIProcate/rutil  9694
Public Member Functions | Private Types | Private Attributes
resip::SysLogBuf Class Reference

#include <SysLogBuf.hxx>

Inheritance diagram for resip::SysLogBuf:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SysLogBuf ()
virtual ~SysLogBuf ()
int sync ()
int overflow (int ch)

Private Types

enum  { Size = 4095 }

Private Attributes

char buffer [Size+1]

Detailed Description

Definition at line 9 of file SysLogBuf.hxx.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
Size 

Definition at line 23 of file SysLogBuf.hxx.

{ Size=4095 }; 

Constructor & Destructor Documentation

SysLogBuf::SysLogBuf ( )

Definition at line 15 of file SysLogBuf.cxx.

References buffer, and Size.

{
#if !defined(WIN32)
   setp(buffer,buffer+Size);
   openlog (0, LOG_NDELAY, LOG_LOCAL6);
#endif
}
SysLogBuf::~SysLogBuf ( ) [virtual]

Definition at line 23 of file SysLogBuf.cxx.

{
}

Member Function Documentation

int SysLogBuf::overflow ( int  ch)

Definition at line 41 of file SysLogBuf.cxx.

References EOF, and sync().

{
   sync();
   if (c != EOF) 
   {
      *pptr() = static_cast<unsigned char>(c);
      pbump(1);
   }
   return c;
}

Here is the call graph for this function:

int SysLogBuf::sync ( )

Definition at line 28 of file SysLogBuf.cxx.

References buffer, and Size.

Referenced by overflow().

{
#if !defined(WIN32)
   *(pptr()) = 0;
   syslog (LOG_LOCAL6 | LOG_DEBUG, "%s", pbase());
   setp(buffer, buffer+Size);
#else
   assert(0);
#endif
   return 0;
}

Member Data Documentation

char resip::SysLogBuf::buffer[Size+1] [private]

Definition at line 24 of file SysLogBuf.hxx.

Referenced by sync(), and SysLogBuf().


The documentation for this class was generated from the following files: