Tokenize received buffer.