hi all pls tell how we can send structure(that have data memebers have value) to tcp socket and read that
thanks with regards:
gauravg
Printable View
hi all pls tell how we can send structure(that have data memebers have value) to tcp socket and read that
thanks with regards:
gauravg
However you want, one byte at a time.
write all structure at a time or one byte at at a time pls specift both the cases.
thanks with regards:
gauravg
QTcpSocket is a QIOdevice. Use QIODevice::write(), QIODevice::read(), possibly even QTextStream or QDataStream, the resources that are already available to you, and some of your own initiative.
write whole structure at a time