Object
VarLengthMessageScanner
- All Implemented Interfaces:
MessageScanner
This scanner treats all data which was written into the buffer so far as one single message. As
the result such messages may have variable length.
Effectively message will consist from whatever ICE managed to receive from the client in one non blocking read operation.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
VarLengthMessageScanner
public VarLengthMessageScanner()
-
-
Method Details
-
scan
- Specified by:
scan
in interfaceMessageScanner
- Returns:
- message end position or -1 if message is not complete or not found in the buffer yet. If last byte of the message found on position n then the message end position will be considered as n + 1.
-