Hi guys,
I read from a QTcpSocket to receive yenc encoded usenet articles and save it to files, but something is wrong. Some articles have wrong CRCs while decoding (one Segment for each article and file):
Qt Code:
QTcpSocket *tcpSocket; QFile output; void Segment::socketReadyRead() { output.write(data); if (data.contains("=yend")) { tcpSocket->close(); } }To copy to clipboard, switch view to plain text mode
What is wrong with my code? Someone has a hint for me?
Thanks!
dynup
Bookmarks