darshan.hardas
20th October 2012, 10:07
The implementation is to send the file to the server using QTcpSockets. I have read the files in buffer and sending it through the active TCP connection. The data is transmitted and the file is sent to the server successfully.
Now, when the data is sent via SOCKS5 proxy, the data is transmitted more than the actual file size corrupting the file on the remote server machine.
To ensure that the data is written on the socket, I have used the QTcpSocket::bytesWritten signal which sends the next chunk of data onto the socket. The proxy is set using QTcpSocket::setProxy.
I have verified that the data read is same as the file size.
Please let me know your valuable comments. Thanks in advance.
Now, when the data is sent via SOCKS5 proxy, the data is transmitted more than the actual file size corrupting the file on the remote server machine.
To ensure that the data is written on the socket, I have used the QTcpSocket::bytesWritten signal which sends the next chunk of data onto the socket. The proxy is set using QTcpSocket::setProxy.
I have verified that the data read is same as the file size.
Please let me know your valuable comments. Thanks in advance.