i am receiving large structure (sizeof structure is around 130024) in a QT server programme from non-qt client. But it receives only 50176 bytes out of 130024 bytes sent from client. i am using qsocket.read() at qt server. i had tried sending of the struct in slices of 1460 bytes and but still i am able to receive only 50176 bytes at my QT programme. The size of receiving buffer is 130024 bytes.
QTcpSocket qsocket ;
if (!qsocket.setSocketDescriptor(socketDescriptor))
{
emit error(qsocket.error());
return;
}
QHostAddress clientt_adrr = qsocket.peerAddress();
QString client_adrr = clientt_adrr.toString();
while(1)
{ if(qsocket.bytesAvailable())
{
data_sz1 = qsocket.read(Rawbuf, sizeof(struct Result));
}
}
size of struct Result is 130024 bytes.
Please help me to resolve this problem.
thanks..
Bookmarks