[Qt-interest] QTcpSocket Problem
Anthony Gabrielson
agabrielson1 at comcast.net
Wed Jan 20 00:11:31 CET 2010
Hello,
I'm having an issue transferring a file with QTcpSocket; the
file will not download completely - I only get the first 37kb or so. I have
attached a small example, hopefully its small enough. Anyway, monitoring
the app the server appears to transfer the entire file but the client
doesn't get it.
Here is what I have seen:
- Server appears to send out the entire file
- Client enters Editor::updateWidget() and successfully enters in
getFile (work.cpp)
- getFile correctly pulls in the first 35ish kb of data (I have
verified the files)
- At somepoint, in getFile's while loop it appears that no more
bytes are available
o I have message that tells the app when to expect the end of the data and
although it's sent it's never received
- The client app realizes that there are more bytes available and
the app gets confused.
I have used this strategy in the past with UNIX sockets and I'm really not
sure where it's getting hung up. I would appreciate any suggestions that
can help me get this working.
Thanks,
Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100119/af02e61b/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SocketsExample.zip
Type: application/x-zip-compressed
Size: 10778 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100119/af02e61b/attachment.bin
More information about the Qt-interest-old
mailing list