Process incoming bytes stream.
Assumes that data is unprocessed.
In case of previous call eaten not all data on next iterations
data should start from unprocessed bytes.
- (int32_t)pushBytes:(NSMutableData *)data
Return Value
Number of bytes processed from this data.
Discussion
Process incoming bytes stream.
Assumes that data is unprocessed.
In case of previous call eaten not all data on next iterations
data should start from unprocessed bytes.
Exceptions
KaaTcpProtocolException |
In case of protocol errors. |