View Full Version : how to send structure to tcp spcket
gauravg
26th March 2012, 12:31
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
ChrisW67
26th March 2012, 13:02
However you want, one byte at a time.
gauravg
26th March 2012, 18:37
write all structure at a time or one byte at at a time pls specift both the cases.
thanks with regards:
gauravg
ChrisW67
26th March 2012, 22:04
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.
gauravg
12th April 2012, 18:34
write whole structure at a time
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.