NCL Library
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
CNamedPipe Class Reference

#include <NamedPipe.hpp>

Inheritance diagram for CNamedPipe:
CClientPipe CServerPipe

List of all members.

Public Member Functions

HANDLE Handle () const
bool IsOpen () const
DWORD TimeOut () const
void SetTimeOut (DWORD dwTimeOut)
size_t Available ()
size_t Peek (void *pBuffer, size_t nBufSize)
size_t Peek (CBuffer &oBuffer, size_t nBufSize)
void Read (void *pBuffer, size_t nBufSize)
void Read (CBuffer &oBuffer)
void Write (const void *pBuffer, size_t nBufSize)
void Write (const CBuffer &oBuffer)
virtual void Close ()

Protected Member Functions

 CNamedPipe ()
 CNamedPipe (const CNamedPipe &)
CNamedPipeoperator= (const CNamedPipe &)
virtual ~CNamedPipe ()

Protected Attributes

HANDLE m_hPipe
CString m_strName
CEvent m_oReadEvent
OVERLAPPED m_oReadIO
CEvent m_oWriteEvent
OVERLAPPED m_oWriteIO
bool m_bPrevWrite
size_t m_nPrevBytes
DWORD m_dwTimeOut

Static Protected Attributes

static const DWORD DEF_TIMEOUT = 30000

Constructor & Destructor Documentation

CNamedPipe::CNamedPipe ( ) [protected]
CNamedPipe::CNamedPipe ( const CNamedPipe ) [protected]
CNamedPipe::~CNamedPipe ( ) [protected, virtual]

Member Function Documentation

HANDLE CNamedPipe::Handle ( ) const [inline]
bool CNamedPipe::IsOpen ( ) const [inline]
DWORD CNamedPipe::TimeOut ( ) const [inline]
void CNamedPipe::SetTimeOut ( DWORD  dwTimeOut) [inline]
size_t CNamedPipe::Peek ( void *  pBuffer,
size_t  nBufSize 
)
size_t CNamedPipe::Peek ( CBuffer &  oBuffer,
size_t  nBufSize 
) [inline]
void CNamedPipe::Read ( void *  pBuffer,
size_t  nBufSize 
)
void CNamedPipe::Read ( CBuffer &  oBuffer) [inline]
void CNamedPipe::Write ( const void *  pBuffer,
size_t  nBufSize 
)
void CNamedPipe::Write ( const CBuffer &  oBuffer) [inline]
void CNamedPipe::Close ( ) [virtual]

Reimplemented in CServerPipe, and CClientPipe.

CNamedPipe& CNamedPipe::operator= ( const CNamedPipe ) [protected]

Member Data Documentation

HANDLE CNamedPipe::m_hPipe [protected]
CString CNamedPipe::m_strName [protected]
CEvent CNamedPipe::m_oReadEvent [protected]
OVERLAPPED CNamedPipe::m_oReadIO [protected]
CEvent CNamedPipe::m_oWriteEvent [protected]
OVERLAPPED CNamedPipe::m_oWriteIO [protected]
bool CNamedPipe::m_bPrevWrite [protected]
size_t CNamedPipe::m_nPrevBytes [protected]
DWORD CNamedPipe::m_dwTimeOut [protected]
const DWORD CNamedPipe::DEF_TIMEOUT = 30000 [static, protected]

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