Allows automatic construction of packets from a stream. More...
#include <PacketBuilder.h>
Public Member Functions | |
| PacketListenerDelegateDispatch & | Delegates () |
| virtual void | CheckMem () const |
| virtual void | ValidateMem () const |
Protected Types | |
| enum | PacketReadState { PKT_ENDIAN, PKT_SIZE_MCB, PKT_SIZE_LCB, PKT_DT, PKT_DT_LEN_MCB, PKT_DT_LEN_LCB, PKT_CHARSIZE, PKT_DATA, PKT_ERROR, PKT_CLOSED } |
Protected Member Functions | |
| void | _ParseData () |
| StringPtr | _ParseString () |
| virtual void | IStreamRead_OnRead (const Array< byte > &buf, int len) |
| virtual void | IStreamRead_OnError (const String &msg) |
| virtual void | IStreamRead_OnClose () |
Protected Attributes | |
| PacketListenerDelegateDispatch | m_listeners |
| enum PacketReadState | m_state |
| bool | m_isLittleEndian |
| bool | m_revbytes |
| int16 | m_pktsize |
| char | m_datatype |
| int16 | m_datalen |
| int8 | m_charsize |
| Vector< byte > | m_buf |
| int | m_readPos |
Allows automatic construction of packets from a stream.
Definition at line 36 of file PacketBuilder.h.