Viper666
13th November 2013, 19:04
Hi i am making stream from mobile to PC. In device i use Java app which send a byte array (of a Opencv Mat object) and then it say the array over TCP and on PC i have an Qt app which receive socket and then just show lenght of received data. Data's lenght should be 25 344 but in Qt app:
void Server::readyRead()
{
QByteArray byte = socket->readAll();
qDebug() << byte.size();
}
i get 18 lines: On 17 lines is 1448 and on one is 728
when i count it its 25 344 but why it send it like that. From java i send only one message but in Qt it looks like i sent 18 messages
why? Is it the big size of message?
Thanks
void Server::readyRead()
{
QByteArray byte = socket->readAll();
qDebug() << byte.size();
}
i get 18 lines: On 17 lines is 1448 and on one is 728
when i count it its 25 344 but why it send it like that. From java i send only one message but in Qt it looks like i sent 18 messages
why? Is it the big size of message?
Thanks