The XByteBuffer provides a dual functionality. One, it stores message bytes and automatically extends the byte buffer if needed.
Two, it can encode and decode packages so that they can be defined and identified as they come in on a socket.
Transfer package:
- START_DATA/b> - 7 bytes - FLT2002
- COMPRESS - 4 bytes - is message compressed flag
- SIZE - 4 bytes - size of the data package
- DATA - should be as many bytes as the prev SIZE
- END_DATA - 7 bytes - TLF2003
FIXME: Why we not use a list of byte buffers? FIXME: Used a pool of buffers instead, every time new generation
@author Filip Hanik
@author Peter Rossbach
@version $Revision: 380229 $, $Date: 2006-02-23 16:28:29 -0500 (Thu, 23 Feb 2006) $