|
Public Member Functions |
| BOOL | Decanonicalize () |
| | Decanonicalizes ( URL type decoding ) the internal buffer.
|
| BOOL | Canonicalize () |
| | Canonicalizes ( URL type decoding ) the internal buffer.
|
| BOOL | Allocate (DWORD dwSize) |
| | Allocates the specified size array.
|
|
void | Flush () |
| | Flushes the internal buffers.
|
| BOOL | PumpAll () |
| | Forces rx data processing.
|
| BOOL | Pump (DWORD bytes) |
| | Forces rx data processing of the specified number of bytes.
|
|
virtual DWORD | GetWritePtr () |
| | Returns the current write pointer location.
|
|
virtual DWORD | GetReadPtr () |
| | Returns the current read pointer location.
|
|
virtual void | SetWritePtr (DWORD p) |
| | Sets the current write pointer location.
|
|
virtual void | SetReadPtr (DWORD p) |
| | Sets the current read pointer location.
|
|
virtual DWORD | GetMaxWrite () |
| | Returns the maximum size buffer that can be written to the pipe.
|
|
virtual DWORD | GetMaxRead () |
| | Returns the maximum number of bytes that can be read from the pipe.
|
| BOOL | EnableBuffer (BOOL enable) |
| | Enable / disable data buffering.
|
| BOOL | EnableBlocking (BOOL enable) |
| | Enable / disable blocking operations.
|
| BOOL | WaitRead (DWORD timeout=3000) |
| | Waits for a pending read operation to complete.
|
| BOOL | WaitWrite (DWORD timeout=3000) |
| | Waits for a pending write operation to complete.
|
| virtual BOOL | OnWriteComplete (LPVOID buf, DWORD size, LPDWORD written) |
| | Called when a write operation completes.
|
| virtual BOOL | OnReadComplete (LPVOID buf, DWORD size, LPDWORD read) |
| | Called when a read operation completes.
|
| virtual BOOL | ProcessWrite (LPVOID buf, DWORD size, LPDWORD written) |
| | Called to process a write operation.
|
| virtual BOOL | ProcessRead (LPVOID buf, DWORD size, LPDWORD read) |
| | Called to process a read operation.
|
| virtual BOOL | OnWrite (LPVOID buf, DWORD size, LPDWORD written) |
| | Called before a write operation is started.
|
| virtual BOOL | OnRead (LPVOID buf, DWORD size, LPDWORD read) |
| | Called before a read operation is started.
|
| virtual BOOL | Write (LPVOID buf, DWORD size=0, LPDWORD written=NULL) |
| | Called to initiate a write operation.
|
| virtual BOOL | Read (LPVOID buf, DWORD size, LPDWORD read=NULL) |
| | Called to initiate a read operation.
|
| virtual BOOL | InitThread (LPVOID pData) |
| | Thread initialization.
|
| virtual BOOL | DoThread (LPVOID pData) |
| | Thread function that processes non-blocking data transferes.
|
| virtual BOOL | EndThread (LPVOID pData) |
| | Thread cleanup.
|
| BOOL | Write (LPCTSTR str, LPDWORD written=NULL) |
| | Writes a string to the buffer.
|
|
| CPipe () |
| | Default constructor.
|
| | CPipe (LPVOID buf, DWORD size=0) |
| | Constructs a pipe by wrapping the specified buffer.
|
|
virtual | ~CPipe () |
| | Destructor.
|
|
void | Init () |
| | Initializes the pie for use.
|
|
BOOL | IsBlocking () |
| | Returns non-zero if blocking read / write mode is enabled.
|
|
BOOL | IsBuffered () |
| | Returns non-zero if buffered read / write mode is enabled.
|
|
DWORD | GetReadCount () |
| | Returns the number of bytes read from the pipe.
|
|
DWORD | GetWriteCount () |
| | Returns the number of bytes written to the pipe.
|
|
void | SetReadCount (DWORD c) |
| | Sets the number of bytes read from the pipe.
|
|
void | SetWriteCount (DWORD c) |
| | Sets the number of bytes written to the pipe.
|
| void | Attach (CPipe *next) |
| | Attaches this pipe to another.
|
|
void | Detach () |
| | Detaches from attached pipe.
|
| void | SetBuffer (LPVOID buf, DWORD size) |
| | Wraps the specified buffer.
|
|
LPVOID | GetReadBuffer () |
| | Returns a pointer to the read buffer.
|
|
DWORD | GetReadBufferSize () |
| | Returns the size of the read buffer.
|
|
LPVOID | GetWriteBuffer () |
| | Returns a pointer to the write buffer.
|
|
DWORD | GetWriteBufferSize () |
| | Returns a pointer to the write buffer.
|
|
LPVOID | GetBuffer () |
| | Returns a pointer to the buffered io buffer.
|
|
DWORD | GetBufferSize () |
| | Returns the size of the buffered io buffer.
|
This class is used to simplify the serialization of data.