#include <mqueue.h>
Inheritance diagram for MessageQueue:

Public Methods | |
| MessageQueue (unsigned int nodeSize=256) | |
| void | Put (byte inByte) |
| input a byte for processing. More... | |
| void | Put (const byte *inString,unsigned int length) |
| input multiple bytes. More... | |
| unsigned long | MaxRetrievable ()const |
| returns number of bytes that is currently ready for retrieval. More... | |
| bool | AnyRetrievable ()const |
| returns whether any bytes are currently ready for retrieval. More... | |
| unsigned long | TransferTo (BufferedTransformation &target,unsigned long transferMax=ULONG_MAX) |
| move transferMax bytes of the buffered output to target as input. More... | |
| unsigned long | CopyTo (BufferedTransformation &target,unsigned long copyMax=ULONG_MAX)const |
| copy copyMax bytes of the buffered output to target as input. More... | |
| void | MessageEnd (int=-1) |
| mark end of an input segment, message, or packet. More... | |
| unsigned long | TotalBytesRetrievable ()const |
| unsigned int | NumberOfMessages ()const |
| number of times MessageEnd() has been received minus messages retrieved or skipped. More... | |
| bool | RetrieveNextMessage () |
| unsigned int | CopyMessagesTo (BufferedTransformation &target,unsigned int count=UINT_MAX)const |
| void | swap (MessageQueue &rhs) |
Definition at line 11 of file mqueue.h.
|
|
Definition at line 8 of file mqueue.cpp. |
|
|
returns whether any bytes are currently ready for retrieval.
Reimplemented from BufferedTransformation. |
|
|
Reimplemented from BufferedTransformation. Definition at line 24 of file mqueue.cpp. |
|
|
copy copyMax bytes of the buffered output to target as input.
Reimplemented from BufferedTransformation. |
|
|
returns number of bytes that is currently ready for retrieval. All retrieval functions return the actual number of bytes retrieved, which is the lesser of the request number and MaxRetrievable(). Reimplemented from BufferedTransformation. |
|
|
mark end of an input segment, message, or packet. propagation != 0 means pass on the signal to attached BufferedTransformation objects, with propagation decremented at each step until it reaches 0. -1 means unlimited propagation. Reimplemented from BufferedTransformation. |
|
|
number of times MessageEnd() has been received minus messages retrieved or skipped.
Reimplemented from BufferedTransformation. |
|
|
input multiple bytes.
Reimplemented from BufferedTransformation. |
|
|
input a byte for processing.
Reimplemented from BufferedTransformation. |
|
|
Definition at line 13 of file mqueue.cpp. |
|
|
Reimplemented from BufferedTransformation. |
|
|
move transferMax bytes of the buffered output to target as input.
Reimplemented from BufferedTransformation. |
|
|
Definition at line 38 of file mqueue.cpp. |
1.2.4 written by Dimitri van Heesch,
© 1997-2000