I am confused on how should I receive and send structures over a QTcp Socket.
in.startTransaction();
QBytearray data;
in >> data;
if (!in.commitTransaction())
{
qDebug() << "incomplete: " << data;
return;
}
so say my packet looks like this in bytes (01 00 00 68 65 6c 6c 6f )
build my struct then use qdatastream operators to deserialize or serialize the packet data....
what do i do about padding...
some exaxmples would be helpfull