|
1)add tag like <Size> which will represent a size of the message.
2)when you are reading response from stream you have to implement algorithm to make a read and analyze what you read checking whether you got full response or partial response and act accordingly.
3) you do not need to use parser for #2.
4) use your parser after you receive full message.
|