hi

I am transmitting a sequence of bytes from my Qt application onto a microcontroller. The bytes contain NULL(0x00) bytes.

The transmission of the packet is terminated as soon as the NULL byte is encountered and the rest of the packet is discarded.

I am using a QTcpSocket class.

....
tcpSocket->write(*barr);
while(tcpSocket->bytesToWrite() > 0)
{
tcpSocket->waitForBytesWritten();
}
....

Is there any way that the required number of bytes are transmitted regardless of the NULL byte? I am new to Qt so any help would be useful.

Thanks and Regards

Manish.S