We need to split a data received from TCP , so we use a tcp delimiter # But if already # included in received data. Data split at # , and so the proper splitting of data is not occur. what is the way to split a data and any need to change a delimiter ? socket->write(QByteArray(1,TASK_DELIMITER)); We collect a data in QList commandList = data.split(TASK_DELIMITER);
Asked
Active
Viewed 76 times
0
-
send length of the data block as first 4 (8) bytes, so receiver can read it and take appropriate slice of the input buffer – Iłya Bursov Sep 23 '22 at 06:05