24 #include <tqcstring.h>
25 #include <tqptrlist.h>
28 class TDEBufferedIOPrivate;
92 virtual void closeNow() = 0;
115 virtual bool setBufferSize(
int rsize,
int wsize = -2);
121 virtual int bytesAvailable()
const;
129 virtual int waitForMore(
int msec) = 0;
135 virtual int bytesToWrite()
const;
145 virtual bool canReadLine()
const;
166 virtual int peekBlock(
char *data, uint maxlen) = 0;
180 virtual int unreadBlock(
const char *data, uint len);
187 void bytesWritten(
int nbytes);
206 void closed(
int state);
221 unsigned inBufIndex ,
234 virtual unsigned consumeReadBuffer(
unsigned nbytes,
char *destbuffer,
bool discard =
true);
247 virtual void consumeWriteBuffer(
unsigned nbytes);
260 virtual unsigned feedReadBuffer(
unsigned nbytes,
const char *buffer,
bool atBeginning =
false);
270 virtual unsigned feedWriteBuffer(
unsigned nbytes,
const char *buffer);
276 virtual unsigned readBufferSize()
const;
282 virtual unsigned writeBufferSize()
const;
285 virtual void virtual_hook(
int id,
void* data );
287 TDEBufferedIOPrivate *d;
290 #endif // KBUFFEREDIO_H
closeModes
The modes for closed() signal.
TQPtrList< TQByteArray > outBuf
For an explanation on how this buffer work, please refer to the comments at the top of kbufferedio....
This abstract class implements basic functionality for buffered input/output.
TQPtrList< TQByteArray > inBuf
For an explanation on how this buffer work, please refer to the comments at the top of kbufferedio....
Asynchronous I/O Support.