Ok. last step:
this doesn't work...
quint16 dataLength=0;
while (zerocount < 4 && dataLength==0)
{
inData >> dataLength;
if (dataLength==0) zerocount++;
}
// exceed number of tries... bogus txs. return.
if (zerocount==3) return;
char * data = new char[dataLength];
inData >> data;
quint16 dataLength=0;
QDataStream inData(&tcpSocket);
while (zerocount < 4 && dataLength==0)
{
inData >> dataLength;
if (dataLength==0) zerocount++;
}
// exceed number of tries... bogus txs. return.
if (zerocount==3) return;
char * data = new char[dataLength];
inData >> data;
To copy to clipboard, switch view to plain text mode
the data is always 0x0 ... 
So ... please tell me... after in >> dataLength the pointer in the stream is advanced or not?
the operator>> ( char *& s ) is able to convert the binary data into char?
Thanks in advance.
Bookmarks